forked from beakerbrowser/beaker
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
131 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters