forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (54 loc) · 1.39 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
50
51
52
53
54
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:
- npm run ava
- gulp lint
- gulp build --fortesting
- gulp check-types
- gulp dist --fortesting
- gulp presubmit
# dep-check needs to occur after build since we rely on build to generate
# the css files into js files.
- gulp dep-check
# Unit tests with Travis' default chromium
- gulp test --nobuild --compiled --fortesting
# Integration tests with all saucelabs browsers
- gulp test --nobuild --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"