language: node_js
node_js:
  - "6"
env:
  - CXX=g++-4.8
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8
install:
  - npm install --global bower gulp
  - npm install
  - bower install
script: gulp
notifications:
  slack:
    on_success: always
    rooms:
      - $SLACK_ROOM_TOKEN
deploy:
  - provider: pages
    skip_cleanup: true
    github_token: $GITHUB_TOKEN
    local_dir: dist
    on:
      branch: master
  - provider: "$BUCKET_PROVIDER"
    access_key_id: "$BUCKET_ACCESS_KEY"
    secret_access_key: "$BUCKET_SECRET_KEY"
    bucket: "$BUCKET_NAME"
    skip_cleanup: true
    acl: public-read
    local_dir: dist

language: node_js
node_js:
  - "6"
env:
  - CXX=g++-4.8
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8
install:
  - npm install --global bower gulp
  - npm install
  - bower install
script: gulp
notifications:
  slack:
    on_success: always
    rooms:
      - $SLACK_ROOM_TOKEN
deploy:
  - provider: pages
    skip_cleanup: true
    github_token: $GITHUB_TOKEN
    local_dir: dist
    on:
      branch: master
  - provider: "$BUCKET_PROVIDER"
    access_key_id: "$BUCKET_ACCESS_KEY"
    secret_access_key: "$BUCKET_SECRET_KEY"
    bucket: "$BUCKET_NAME"
    skip_cleanup: true
    acl: public-read
    local_dir: dist
    on:
      branch: **

Deploy to cloud storage on all branches
Deploy to cloud storage on all branches
