forked from mParticle/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (60 loc) · 1.51 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
55
56
57
58
59
60
language: node_js
sudo: required # See http://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty
node_js:
- "lts/*"
python:
- "2.7"
notifications:
email:
recipients:
on_success: change
on_failure: change
webhooks:
- http://savage.nonblocking.io:8080/savage/travis
before_install:
- export CHROME_BIN=google-chrome-stable
- export DISPLAY=:99.0
- unset _JAVA_OPTIONS # JVM heap sizes break closure compiler. #11203.
- sh -e /etc/init.d/xvfb start
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
before_script:
- pip install --user protobuf
script: node build-system/pr-check.js
after_script:
- build-system/sauce_connect/stop_sauce_connect.sh
branches:
only:
- master
- release
- canary
- /^amp-release-.*$/
addons:
chrome: stable
hosts:
- ads.localhost
- iframe.localhost
# Requested by some tests because they need a valid font host,
# but should not resolve in tests.
- fonts.googleapis.com
apt:
packages:
- protobuf-compiler
- python-protobuf
matrix:
include:
- env: BUILD_SHARD="unit_tests"
- env: BUILD_SHARD="integration_tests"
cache:
yarn: true
directories:
- build-system/tasks/visual-diff/node_modules
- node_modules
- validator/node_modules
- validator/nodejs/node_modules
- validator/webui/node_modules
- sauce_connect
pip: true
bundler: true