sudo: false
language: node_js
node_js:
  - '4.2'
install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - npm install -g gulp bower codacy-coverage
  - npm install
  - bower install
script: gulp
after_script:
    - cat coverage/**/lcov.info | codacy-coverage
after_success:
  script: ./deploy.sh
deploy:
  provider: bintray
  file: "bintray.json"
  user: "rkorytkowski"
  key: $BINTRAY_API_KEY
  dry-run: false
  on:
    tags: true

sudo: false
language: node_js
node_js:
  - '4.2'
install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - npm install -g gulp bower codacy-coverage
  - npm install
  - bower install
script: gulp
after_script:
    - cat coverage/**/lcov.info | codacy-coverage
after_success:
  if ([ "$TRAVIS_BRANCH" == "master" ]); then
    ./deploy.sh
  fi
deploy:
  provider: bintray
  file: "bintray.json"
  user: "rkorytkowski"
  key: $BINTRAY_API_KEY
  dry-run: false
  on:
    tags: true

Deploy to GH only for master
Deploy to GH only for master
