os:
  - osx
  - linux

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

install:
  - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
  - source ~/.bashrc
  - nvm install 4.2.2
  - nvm use 4.2.2
  - npm install

branches:
  except:
    - website

script:
  - npm run test
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./sig/import.sh && npm run make:darwin && node ./sig/publish-mac.js; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run make:linux && echo Success; fi #&& node ./sig/publish-linux.js; fi

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/92deafd1eb3a9871497b
    on_success: always
    on_failure: always
    on_start: never

os:
  - osx
  - linux

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

install:
  - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
  - source ~/.bashrc
  - nvm install 4.2.2
  - nvm use 4.2.2
  - npm install

branches:
  except:
    - website

script:
  - npm run test
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]]; then ./sig/import.sh && npm run make:darwin && node ./sig/publish-mac.js; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run make:linux && echo Success; fi #&& node ./sig/publish-linux.js; fi

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/92deafd1eb3a9871497b
    on_success: always
    on_failure: always
    on_start: never

Fix Travis-CI errors when build Mac due to security
Fix Travis-CI errors when build Mac due to security
