notifications:
  email:
    on_success: never
    on_failure: change

os:
  - osx

branches:
  only:
    - master
    - /^__release-.*/

language: node_js
node_js:
  - "node"

cache:
  timeout: 600
  directories:
    - node_modules
    - $HOME/.electron

install:
  - npm install

script:
  - npm run lint
  - npm run build:prod
  - npm run test:unit
  - npm run test:integration

after_success:
  - npm run publish

notifications:
  email:
    on_success: never
    on_failure: change

os:
  - osx

branches:
  only:
    - master
    - /^__release-.*/

language: node_js
node_js:
  - "node"

cache:
  timeout: 600
  directories:
    - node_modules
    - $HOME/.electron

install:
  - npm install

script:
  - npm run lint
  - npm run build:prod
  - npm test

after_success:
  - npm run publish

Revert "Run the two test phases separately"
Revert "Run the two test phases separately"

This reverts commit d0871ce2af12ec6d964c400a8a5c92918c4300c8.
