language: node_js
sudo: required  # See http://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty
node_js:
  - "stable"
python:
  - "2.7"
notifications:
  webhooks:
    - http://savage.nonblocking.io:8080/savage/travis
addons:
  sauce_connect: true
  hosts:
    - ads.localhost
    - iframe.localhost
  apt:
    packages:
    - protobuf-compiler
    - python-protobuf
before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
before_script:
  - npm install -g gulp
  - pip install --user protobuf
script:
  - gulp lint
  - gulp build
  - gulp dist
  - gulp presubmit
  # Unit tests with Travis' default chromium
  - gulp test --compiled
  # Integration tests with all saucelabs browsers
  - gulp test --saucelabs --integration --compiled
  # All unit tests with an old chrome (best we can do right now to pass tests
  # and not start relying on new features).
  # Disabled because it regressed. Better to run the other saucelabs tests.
  # - gulp test --saucelabs --oldchrome
  - gulp validator
branches:
  only:
    - master
    - release
    - canary

language: node_js
sudo: required  # See http://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty
node_js:
  - "stable"
python:
  - "2.7"
notifications:
  webhooks:
    - http://savage.nonblocking.io:8080/savage/travis
addons:
  sauce_connect: true
  hosts:
    - ads.localhost
    - iframe.localhost
  apt:
    packages:
    - protobuf-compiler
    - python-protobuf
before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
before_script:
  - npm install -g gulp
  - pip install --user protobuf
script:
  - gulp lint
  - gulp build
  - gulp dist
  - gulp presubmit
  # Unit tests with Travis' default chromium
  - gulp test --compiled
  # Integration tests with all saucelabs browsers
  - gulp test --saucelabs --integration --compiled
  # All unit tests with an old chrome (best we can do right now to pass tests
  # and not start relying on new features).
  # Disabled because it regressed. Better to run the other saucelabs tests.
  # - gulp test --saucelabs --oldchrome
  - gulp validator
branches:
  only:
    - master
    - release
    - canary
env:
  global:
    - NPM_CONFIG_PROGRESS="false"

Speed up npm installs on Travis
Speed up npm installs on Travis

Re: https://github.com/npm/npm/issues/11283