sudo: false
dist: trusty
language: node_js
node_js:
  - 6

env:
  - TEST_SUITE=main
  - TEST_SUITE=tz TZ_LENGTH=2 TZ_INDEX=0
  - TEST_SUITE=tz TZ_LENGTH=2 TZ_INDEX=1

before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

branches:
  only:
    - master
    - v2
    - "/v\\d+\\.\\d+\\.\\d+(-\\w+)?/"

script:
  - ./scripts/test/travis.sh

deploy:
  provider: script
  script: ./scripts/release.sh
  on:
    tags: true

cache: yarn

addons:
  sauce_connect: true

sudo: false
dist: trusty
language: node_js
node_js:
  - 6

env:
  - TEST_SUITE=main
  - TEST_SUITE=tz TZ_LENGTH=2 TZ_INDEX=0
  - TEST_SUITE=tz TZ_LENGTH=2 TZ_INDEX=1

before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

branches:
  only:
    - master
    - v2
    - "/v\\d+\\.\\d+\\.\\d+(-\\w+)?/"

script:
  - ./scripts/test/travis.sh

deploy:
  provider: script
  script: ./scripts/release/release.sh
  on:
    tags: true

cache: yarn

addons:
  sauce_connect: true

Fix deployment script in the Travis config
Fix deployment script in the Travis config
