language: node_js node_js: "12" cache: directories: - $HOME/.cache/electron - $HOME/.cache/electron-builder install: - npm install jobs: include: - os: osx osx_image: xcode10 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 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 services: - xvfb before_script: - "export DISPLAY=:99.0" 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