forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (70 loc) · 3.16 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
61
62
63
64
65
66
67
68
69
70
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:
- amp-build-cop@grotations.appspotmail.com
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
before_script:
- pip install --user protobuf
- gem install percy-capybara capybara selenium-webdriver chromedriver-helper
- chromedriver-update 2.35
- chromedriver -v
script: node build-system/pr-check.js
after_script:
- build-system/sauce_connect/stop_sauce_connect.sh
branches:
only:
- master
- release
- canary
- /^amp-release-.*$/
- /^greenkeeper/.*$/
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:
# For non-greenkeeper branches, use the normal environment.
- if: NOT branch =~ ^greenkeeper/.*$
env: BUILD_SHARD="unit_tests"
- if: NOT branch =~ ^greenkeeper/.*$
env: BUILD_SHARD="integration_tests"
# For greenkeeper branches, add a secure GH token for the lockfile upload.
- if: branch =~ ^greenkeeper/.*$
env:
# BUILD_SHARD="unit_tests" GH_TOKEN=[secure]
secure: "vDfldX3uQ6Y5hG7RY4DGwm28TFTOhRjn2stwWxl6CCN0Dys6qLCm9z6aexZBnarOqoZRjX/MSaV57VSOMAZuvs4sJiR8jpEK3j8ZKYPsgw50Hzkuz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lCi1ZoWl56OJs1KZU3WltQmtYJ2xDN6h/UCK3YKC8rpVCRd0ed9Ftu7HZyRPiCUBwqQ24Fz1aZ1KzDS2Ig5NUaHS0U3JgDO9xojGeG2K7As0Ik0WeoLwf9h3PDWTAv8f4WhQbDCkZ/CTLi+RrkmsV+lrYF+TZ17l0X7fDIhLbULaK4Y1/kK7VWAT6chVQ8zFL8H1ahcGmSwzJ3n1qPbeHRyFpcvFMuIXJgjUoEQEz4="
cache:
yarn: true
directories:
- node_modules
- .gem
pip: true
bundler: true