forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (59 loc) · 1.44 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
language: node_js
sudo: required # See http://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty
node_js:
- "lts/*"
python:
- "2.7"
notifications:
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 rspec-retry
- chromedriver-update 2.35
- chromedriver -v
- ./node_modules/.bin/greenkeeper-lockfile-update
script: node build-system/pr-check.js
after_script:
- ./node_modules/.bin/greenkeeper-lockfile-upload
- build-system/sauce_connect/stop_sauce_connect.sh
branches:
only:
- master
- release
- canary
- /^amp-release-.*$/
- /^greenkeeper/.*$/
env:
global:
- SAUCE_USERNAME="amphtml"
- NPM_CONFIG_PROGRESS="false"
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:
- node_modules
- .gem
pip: true
bundler: true