Add Electron Build to Travis (#1830)
* introduce build matrix to travis config * remove branch exclusion * trigger mycryptobuild
This commit is contained in:
parent
61fa744927
commit
5200bf54ac
66
.travis.yml
66
.travis.yml
|
@ -1,33 +1,63 @@
|
|||
dist: trusty
|
||||
sudo: required
|
||||
|
||||
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:
|
||||
yarn: true
|
||||
directories:
|
||||
- node_modules
|
||||
- $HOME/.cache/electron
|
||||
- $HOME/.cache/electron-builder
|
||||
|
||||
services:
|
||||
- docker
|
||||
before_cache:
|
||||
- |
|
||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
rm -rf $HOME/.cache/electron-builder/wine
|
||||
fi
|
||||
|
||||
before_install:
|
||||
- export CHROME_BIN=chromium-browser
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
export CHROME_BIN=chromium-browser
|
||||
export DISPLAY=:99.0
|
||||
sh -e /etc/init.d/xvfb start
|
||||
# uncomment once integration tests are included in CI
|
||||
# - docker pull dternyak/eth-priv-to-addr:latest
|
||||
- sudo apt-get install libusb-1.0
|
||||
# docker pull dternyak/eth-priv-to-addr:latest
|
||||
sudo apt-get install libusb-1.0
|
||||
fi
|
||||
|
||||
install:
|
||||
- npm install --silent
|
||||
- yarn --silent
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
script: npm run prettier:diff
|
||||
- stage: test
|
||||
script: npm run test:coverage -- --maxWorkers=2 && npm run report-coverage
|
||||
- stage: test
|
||||
script: npm run tslint && npm run tscheck && npm run freezer && npm run freezer:validate
|
||||
script:
|
||||
- |
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
npm run prettier:diff
|
||||
npm run test:coverage -- --maxWorkers=2
|
||||
npm run report-coverage
|
||||
npm run tslint
|
||||
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:
|
||||
email:
|
||||
|
|
Loading…
Reference in New Issue