sudo: required
os:
- linux
- osx
dist: trusty
osx_image: xcode8
language: node_js
node_js:
- '4'
- '6'
- '8'
- '9'
matrix:
  allow_failures:
  - node_js: '9'
cache:
- apt: true
- directories:
  - "node_modules"
  - "$HOME/.electron"
before_install: test/ci/before_install.sh
install:
- npm install
- npm update
before_script: test/ci/_before_script.js
after_success: npm run codecov
branches:
  only:
  - master
  - /^v\d+\.\d+\.\d+/
env:
  global:
    # prevent wine popup dialogs about installing additional packages
    - WINEDLLOVERRIDES="mscoree,mshtml="
    - WINEDEBUG="-all"
