branches:
  only:
    - master
    - /^greenkeeper/.*$/

dist: trusty
sudo: false

language: node_js
node_js:
  - "8"

os:
  - linux
  - osx

addons:
  apt:
    packages:
      - rpm       # dist
      - xvfb      # testing
      - openjpeg2-tools # this + gm for electron-builder's icon work
      - graphicsmagick

cache:
  directories:
    - node_modules

before_script:
  - npm run build

script: # we want to be notified if any of these fail, so use script rather than after_success
  - npm test && npm run dist # only dist if the tests pass
  - if [[ $TRAVIS_OS_NAME = "linux" ]]; then npm run coveralls; fi

branches:
  only:
    - master
    - /^greenkeeper/.*$/

dist: trusty
sudo: false

language: node_js
node_js:
  - "8"

os:
  - linux
  - osx

addons:
  apt:
    packages:
      - rpm       # dist
      - xvfb      # testing
      - openjpeg-tools # this + gm for electron-builder's icon work
      - graphicsmagick

cache:
  directories:
    - node_modules

before_script:
  - npm run build

script: # we want to be notified if any of these fail, so use script rather than after_success
  - npm test && npm run dist # only dist if the tests pass
  - if [[ $TRAVIS_OS_NAME = "linux" ]]; then npm run coveralls; fi

Fix trusty jpeg dependency name
Fix trusty jpeg dependency name
