forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 1.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 --fortesting
- gulp dist --fortesting
- gulp presubmit
# Unit tests with Travis' default chromium
- gulp test --compiled --fortesting
# Integration tests with all saucelabs browsers
- gulp test --saucelabs --integration --compiled --fortesting
# 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
- /^amp-release-.*$/
env:
global:
- NPM_CONFIG_PROGRESS="false"