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 before_cache: - | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rm -rf $HOME/.cache/electron-builder/wine fi before_install: - | 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 install: - yarn --silent before_script: - chmod +x ./travis-scripts/test-{linux,osx}.sh script: - ./travis-scripts/test-linux.sh - ./travis-scripts/test-osx.sh notifications: email: on_success: never on_failure: never