forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (99 loc) · 2.65 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
language: node_js
dist: xenial
node_js:
- "lts/*"
python:
- "2.7"
notifications:
email:
recipients:
on_success: change
on_failure: change
before_install:
# Override Xenial's default Java version (github.com/travis-ci/travis-ci/issues/10290)
- export PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/lib\/jvm\/openjdk11\/bin//')
- export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
branches:
only:
- master
- release
- canary
- /^amp-release-.*$/
addons:
apt:
packages:
- protobuf-compiler
- python-protobuf
- openssl
- google-cloud-sdk
chrome: stable
hosts:
- ads.localhost
- iframe.localhost
# CURLs amp subdomain for the amp-recaptcha-input integration test. The hash
# is the CURLS subdomain for localhost:9876
- jgla3zmib2ggq5buc4hwi5taloh6jlvzukddfr4zltz3vay5s5rq.recaptcha.localhost
# Requested by some tests because they need a valid font host,
# but should not resolve in tests.
- fonts.googleapis.com
stages:
- build
- test
jobs:
include:
- stage: build
name: "Build"
script:
- node build-system/pr-check/build.js
- stage: build
name: "Checks"
script:
- node build-system/pr-check/checks.js
- stage: build
name: "Validator Tests"
script:
- node build-system/pr-check/validator-tests.js
- stage: build
name: "Dist"
if: type != pull_request
script:
- node build-system/pr-check/dist.js
- stage: test
name: "Dist, Bundle Size, Single Pass Tests"
script:
- node build-system/pr-check/dist-tests.js
- stage: test
name: "Visual Diff Tests"
script:
- node build-system/pr-check/visual-diff-tests.js
- stage: test
name: "Local Tests"
script:
- node build-system/pr-check/local-tests.js
- stage: test
name: "Remote (Sauce Labs) Tests"
script:
- node build-system/pr-check/remote-tests.js
after_script:
- build-system/sauce_connect/stop_sauce_connect.sh
- stage: test
name: "[NON-BLOCKING] End to End Tests"
script:
- node build-system/pr-check/e2e-tests.js
fast_finish: true
# TODO(ampproject/wg-infra): remove when these tests stabilize
allow_failures:
- script:
- node build-system/pr-check/e2e-tests.js
cache:
directories:
- node_modules
- build-system/tasks/e2e/node_modules
- build-system/tasks/visual-diff/node_modules
- sauce_connect
- validator/node_modules
- validator/nodejs/node_modules
- validator/webui/node_modules
- $HOME/.cache/pip
yarn: true