2018-05-22 18:04:10 +00:00
|
|
|
|
2017-05-23 07:03:13 +00:00
|
|
|
language: node_js
|
|
|
|
|
2018-05-22 18:04:10 +00: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 22:11:03 +00:00
|
|
|
cache:
|
2018-05-22 18:04:10 +00:00
|
|
|
yarn: true
|
2017-12-11 22:11:03 +00:00
|
|
|
directories:
|
|
|
|
- node_modules
|
2018-05-22 18:04:10 +00:00
|
|
|
- $HOME/.cache/electron
|
|
|
|
- $HOME/.cache/electron-builder
|
2017-12-11 22:11:03 +00:00
|
|
|
|
2018-05-22 18:04:10 +00:00
|
|
|
before_cache:
|
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
rm -rf $HOME/.cache/electron-builder/wine
|
|
|
|
fi
|
2017-12-06 06:24:40 +00:00
|
|
|
|
2017-05-23 07:03:13 +00:00
|
|
|
before_install:
|
2018-05-22 18:04:10 +00: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
|
2018-06-15 23:26:09 +00:00
|
|
|
sudo apt-get install libusb-1.0
|
2018-05-22 18:04:10 +00:00
|
|
|
fi
|
2018-06-15 23:26:09 +00:00
|
|
|
|
2017-11-29 23:20:24 +00:00
|
|
|
install:
|
2018-05-22 18:04:10 +00:00
|
|
|
- yarn --silent
|
2017-05-23 07:14:49 +00:00
|
|
|
|
2018-06-15 23:26:09 +00:00
|
|
|
before_script:
|
|
|
|
- chmod +x ./travis-scripts/test-{linux,osx}.sh
|
|
|
|
|
2018-05-22 18:04:10 +00:00
|
|
|
script:
|
2018-06-15 23:26:09 +00:00
|
|
|
- ./travis-scripts/test-linux.sh
|
|
|
|
- ./travis-scripts/test-osx.sh
|
2018-05-22 18:04:10 +00:00
|
|
|
|
2017-12-06 06:24:40 +00:00
|
|
|
|
2017-05-23 07:14:49 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
2018-06-18 01:53:00 +00:00
|
|
|
on_failure: never
|