Add Electron Build to Travis (#1830)

* introduce build matrix to travis config

* remove branch exclusion

* trigger mycryptobuild
This commit is contained in:
Danny Skubak 2018-05-22 14:04:10 -04:00 committed by Daniel Ternyak
parent 61fa744927
commit 5200bf54ac
No known key found for this signature in database
GPG Key ID: DF212D2DC5D0E245
1 changed files with 50 additions and 20 deletions

View File

@ -1,33 +1,63 @@
dist: trusty
sudo: required
language: node_js language: node_js
matrix:
include:
- os: osx
osx_image: xcode9.3
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- os: linux
dist: trusty
sudo: required
services: docker
cache: cache:
yarn: true
directories: directories:
- node_modules - node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
services: before_cache:
- docker - |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
rm -rf $HOME/.cache/electron-builder/wine
fi
before_install: before_install:
- export CHROME_BIN=chromium-browser - |
- export DISPLAY=:99.0 if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- sh -e /etc/init.d/xvfb start export CHROME_BIN=chromium-browser
# uncomment once integration tests are included in CI export DISPLAY=:99.0
# - docker pull dternyak/eth-priv-to-addr:latest sh -e /etc/init.d/xvfb start
- sudo apt-get install libusb-1.0 # uncomment once integration tests are included in CI
# docker pull dternyak/eth-priv-to-addr:latest
sudo apt-get install libusb-1.0
fi
install: install:
- npm install --silent - yarn --silent
jobs: script:
include: - |
- stage: test if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
script: npm run prettier:diff npm run prettier:diff
- stage: test npm run test:coverage -- --maxWorkers=2
script: npm run test:coverage -- --maxWorkers=2 && npm run report-coverage npm run report-coverage
- stage: test npm run tslint
script: npm run tslint && npm run tscheck && npm run freezer && npm run freezer:validate npm run tscheck
npm run freezer
npm run freezer:validate
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
npm run build:electron
ls -la dist/electron-builds
fi
notifications: notifications:
email: email: