language: node_js node_js: "12" cache: directories: - node_modules - $HOME/.cache/electron - $HOME/.cache/electron-builder install: - npm install jobs: include: - os: osx osx_image: xcode10.2 env: - ELECTRON_CACHE=$HOME/.cache/electron - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder - MATRIX_EVAL="brew install gcc && CC=gcc-5 && CXX=g++-5" name: Mac before_script: - "export DISPLAY=:99.0" script: - node --version - npm --version - npm run lint - npm run pack - npm run test - os: linux addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-5 - gcc-5 env: CC=gcc-5 CXX=g++-5 name: Linux before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - sleep 3 # give xvfb some time to start script: - node --version - npm --version - npm run lint - npm run pack - npm run test - "[[ $TRAVIS_BRANCH == master ]] && npm run publish:linux || echo \"Skipped Deploy Step\"" notifications: email: false