forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (44 loc) · 1.02 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
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:
- |
[ -z "$(git diff --name-only $TRAVIS_COMMIT_RANGE)" ] || git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.(md|txt)$)|(^(examples|spec))/' || {
echo "Only docs were updated, stopping build process."
exit
}
- 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: node build-system/pr-check.js $TRAVIS_COMMIT_RANGE
branches:
only:
- master
- release
- canary
- /^amp-release-.*$/
env:
global:
- NPM_CONFIG_PROGRESS="false"
cache:
directories:
- node_modules