language: node_js

node_js:
- 7

before_install:
- openssl aes-256-cbc -K $encrypted_294e4e77ddf7_key -iv $encrypted_294e4e77ddf7_iv
  -in travis-service-account-auth.json.enc -out travis-service-account-auth.json -d
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- node ./internals/scripts/generate-templates-for-linting
- npm run test

after_success:
- npm run coveralls
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < ./coverage/lcov.info
- npm run build
- wget "https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz"
- tar -xaf "google-cloud-sdk.tar.gz"
- ./google-cloud-sdk/install.sh --usage-reporting false --path-update true
- source './google-cloud-sdk/path.bash.inc'
- gcloud auth activate-service-account $TRAVIS_SERVICE_ACCOUNT --key-file=travis-service-account-auth.json
- gsutil -m rsync -R -D build $GCS_BUCKET

notifications:
  email:
    on_failure: change

cache:
  yarn: true
  directories:
  - node_modules

language: node_js

node_js:
- 7

before_install:
- openssl aes-256-cbc -K $encrypted_294e4e77ddf7_key -iv $encrypted_294e4e77ddf7_iv
  -in travis-service-account-auth.json.enc -out travis-service-account-auth.json -d
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- node ./internals/scripts/generate-templates-for-linting
- npm run test

after_success:
- npm run coveralls
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < ./coverage/lcov.info
- npm run build
- wget "https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz"
- tar -xaf "google-cloud-sdk.tar.gz"
- ./google-cloud-sdk/install.sh --usage-reporting false --path-update true
- source './google-cloud-sdk/path.bash.inc'
- gcloud auth activate-service-account $TRAVIS_SERVICE_ACCOUNT --key-file=travis-service-account-auth.json
- gsutil -m rsync -R -d build/ $GCS_BUCKET

notifications:
  email:
    on_failure: change

cache:
  yarn: true
  directories:
  - node_modules

Correct invalid argument for gsutil rsync
Correct invalid argument for gsutil rsync
