Skip to content

Commit

Permalink
Add CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Aug 27, 2016
1 parent 256f96c commit 9d1d86f
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 5 deletions.
63 changes: 63 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
os:
- linux
- osx
# # dist: trusty
# matrix:
# include:
# - os: linux
# env: |
# PLATFORM=linux-x64
# PLATFORM_NAME=linux
# CXX=g++-4.8
# - os: osx
# env: PLATFORM=osx-x64 PLATFORM_NAME=darwin CXX=g++-4.8

node_js:
- '6'

cache:
directories:
- node_modules
- app/node_modules
- $HOME/.electron
- $HOME/.cache

language: node_js


addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

before_script:
- npm run rebuild
# - npm run build

script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm run release:mac; ls dist/mac ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run release:linux; ls dist/linux; fi

before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export RELEASE_PKG=$(ls dist/**/*.dmg); fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export RELEASE_PKG=$(ls dist/*.tar.gz); fi
- echo "deploying ${RELEASE_PKG} to GitHub releases"
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: Rm1xf0UrI1oPjHQAWrgqEHohh/As8QwDfoK8Ijov+hfAVIsBfl0qhtuaO7/6q1KLgORNHIaXpwVDwoBsWeNscdgfQSbs/ddE3Y+f4LVbMJDU59Q25wvAZNw+ad0/ZuRlhSn/a/hbN+TYmCkZI/+QgmmWFZQGf8ZMTDgY7bU49fCstbtYHeLnWvKpASk/6tmctYLhj92kdcqADvvLLZzaUQrUReoWs9atImuLOJkB4ShKkzpNw2onBsCCCJjjeRaseKUNm0KLP2jZG/kv7ZV8tDJ7DEqLgsI/wc2OBh7h5bR13xOOO6wvYlBoRM7pGy/0KPY15+0DX+Lc9td1Fqm04fr8ZCEehX0kRkbrUUZoHSiEAvnQ/2tm0opAC+6z6tB3ZNGi9qRa5ipqzlQoSUbUYRsTyWwUK0Ca4eeGPETDKkpMFIOxfHPaRK+6qKrNGa0H/Tnoi5kpXIJeIa1ZLLy6tJMqbQWDknwo9AB08QfVbZFk0ws7FR526VOELmhvngk6v0ySjtgxGCFcs6QEWNTa4clswiOZKDOP9vpvMFcrYWBRUt29GBV/Mqa4E+J6CdG2O8nrCiZA+KZ9LNxXFBBW3beo+UxFKwBiJFwzL40zw/hirnzRd5oaNU+o1dZCAUZ1S3xKwOC+wBdPHGF0LgN7EXFHHTwT0UV4sZHNo8pbymk=
fileglob: true
file: "${RELEASE_PKG}"
on:
repo: joshuef/beaker
branch: release
# tags: true


notifications:
email:
on_success: [change] # default: change
on_failure: [change] # default: always
52 changes: 52 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
platform:
- x64

image: Visual Studio 2015
os: unstable
environment:
nodejs_version: "6.3.1"
# access_token:
# secure: HEQy5YZG7sRPx3f1lWg2/gCBCbjf3oPL2C4SYrdFxToZmOdwG8l1o+X35M2bUGl4

skip_tags: true

cache:
- node_modules
- app\node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'

install:
- ps: Install-Product node 6.3.1 x64
- node --version
- npm --version
- npm install npm@next -g
- npm install
- npm run rebuild:only
- npm run build


build_script:
- node --version
- npm --version
- npm run release:windows
# build: off
# test_script:
# - npm config set msvs_version=2013
# - npm install --progress false --depth 0
# - npm test

# before_deploy:
# -
deploy:
release: safe-beaker-win-v$(appveyor_build_version)
description: 'Safe Beaker Browser'
provider: GitHub
auth_token:
secure: HEQy5YZG7sRPx3f1lWg2/gCBCbjf3oPL2C4SYrdFxToZmOdwG8l1o+X35M2bUGl4 # your encrypted token from GitHub
artifact: dist
draft: false
prerelease: true
on:
branch: SAFEr # release from master branch only
appveyor_repo_tag: false # deploy on tag push only
21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,28 @@
"rcedit": "^0.5.0"
},
"build": {
"appId": "com.pfrazee.beaker-browser",
"category": "public.app-category.productivity",
"copyright": "© 2016, Paul Frazee",
"npmRebuild": false
"npmRebuild": false,
"linux" : {
"target" : [ "deb", "tar.gz", "zip" ]
},
"win" : {
"target" : "zip"
},
"protocols" : ["safe"]

},
"scripts": {
"postinstall": "cd app && npm install",
"build": "gulp build",
"rebuild": "(cd app && npm rebuild --runtime=electron --target=1.3.3 --disturl=https://atom.io/download/atom-shell --build-from-source); gulp build",
"rebuild:only": "cd app && npm rebuild --runtime=electron --target=1.3.3 --disturl=https://atom.io/download/atom-shell --build-from-source",
"rebuild": "(cd app && npm rebuild --runtime=electron --target=1.3.3 --disturl=https://atom.io/download/atom-shell --build-from-source); gulp build;",
"burnthemall": "rm -Rf ./node_modules ./app/node_modules; npm i",
"release": "build -m -p never",
"release": "build -lmw -p never",
"release:mac": "build -m -p never",
"release:linux": "build -l -p never",
"release:windows": "build -w -p never",
"release": "build -m -l -w -p never",
"start": "gulp start",
"watch": "gulp start-watch"
}
Expand Down

0 comments on commit 9d1d86f

Please sign in to comment.