2018-05-22 14:04:10 -04:00
|
|
|
|
2017-05-23 02:03:13 -05:00
|
|
|
language: node_js
|
|
|
|
|
2018-05-22 14:04:10 -04:00
|
|
|
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
|
|
|
|
|
2017-12-11 14:11:03 -08:00
|
|
|
cache:
|
2018-05-22 14:04:10 -04:00
|
|
|
yarn: true
|
2017-12-11 14:11:03 -08:00
|
|
|
directories:
|
|
|
|
- node_modules
|
2018-05-22 14:04:10 -04:00
|
|
|
- $HOME/.cache/electron
|
|
|
|
- $HOME/.cache/electron-builder
|
2017-12-11 14:11:03 -08:00
|
|
|
|
2018-05-22 14:04:10 -04:00
|
|
|
before_cache:
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
rm -rf $HOME/.cache/electron-builder/wine
|
|
|
|
fi
|
2017-12-05 22:24:40 -08:00
|
|
|
|
2017-05-23 02:03:13 -05:00
|
|
|
before_install:
|
2018-05-22 14:04:10 -04:00
|
|
|
- |
|
|
|
|
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
|
|
|
|
fi
|
2018-01-11 21:57:19 -05:00
|
|
|
|
2017-11-29 15:20:24 -08:00
|
|
|
install:
|
2018-05-22 14:04:10 -04:00
|
|
|
- yarn --silent
|
2017-05-23 02:14:49 -05:00
|
|
|
|
2018-05-22 14:04:10 -04:00
|
|
|
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
|
2017-12-05 22:24:40 -08:00
|
|
|
|
2017-05-23 02:14:49 -05:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
2018-05-22 14:04:10 -04:00
|
|
|
on_failure: never
|