language: node_js
node_js:
- '6'
env:
- GIT_DEPLOY_DIR: www
script: npm test
after_success:
- git remote set-url origin git@github.com:ultimate-comparisons/ultimate-comparison-BASE.git
- openssl aes-256-cbc -K $encrypted_08460152d0a3_key -iv $encrypted_08460152d0a3_iv -in id_rsa.enc -out id_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 id_rsa
- ssh-add id_rsa
- "./update.sh"
before_install:
- wget https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb
- sudo dpkg -i pandoc-1.17.2-1-amd64.deb
- rm pandoc-1.17.2-1-amd64.deb
- npm install -g npm
- java -version
- pandoc -v
- npm -version
- npm install
deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # set in travis-ci.org dashboard
  on:
    branch: master
branches:
  only:
  - master
  - development
sudo: required
dist: trusty
language: node_js
node_js:
- '6'
env:
- GIT_DEPLOY_DIR: www
script: npm test
after_success:
- git remote set-url origin git@github.com:ultimate-comparisons/ultimate-comparison-BASE.git
- openssl aes-256-cbc -K $encrypted_08460152d0a3_key -iv $encrypted_08460152d0a3_iv -in id_rsa.enc -out id_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 id_rsa
- ssh-add id_rsa
before_install:
- wget https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb
- sudo dpkg -i pandoc-1.17.2-1-amd64.deb
- rm pandoc-1.17.2-1-amd64.deb
- npm install -g npm
- java -version
- pandoc -v
- npm -version
- npm install
deploy:
- provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # set in travis-ci.org dashboard
  on:
    branch: master
- provider: script
  script: update.sh
  on:
    branch: master
branches:
  only:
  - master
  - development
sudo: required
dist: trusty
Fix run update.sh only if branch === master
Fix run update.sh only if branch === master

Signed-off-by: Christoph Kleine <31da8eadd3e08b4765681520875d9858d60dbfa2@gmail.com>
