forked from GoogleChrome/chromium-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (40 loc) · 978 Bytes
/
.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
language: node_js
node_js:
- "8"
python:
- "2.7"
dist: trusty
sudo: false
git:
depth: 1
env:
global:
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
- CLOUDSDK_PYTHON_SITEPACKAGES=1
- GAE_APP_ID=cr-status
cache:
yarn: true
pip: true
directories:
- node_modules
before_install:
- if [ ! -d $HOME/google-cloud-sdk/bin ]; then rm -rf $HOME/google-cloud-sdk; curl https://sdk.cloud.google.com | bash > /dev/null; fi
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud components update -q
- gcloud components install app-engine-python
- gcloud version
install:
- npm install -g gulp
- npm install
- npm run deps
script:
- npm run lint
- npm run test
- npm run build
after_success:
- df -h
- "./travis/deploy_pr_gae.sh"
- df -h
- export LH_MIN_PASS_SCORE=96
- export LH_TEST_URL=https://lighthouse-ci-staging-dot-cr-status.appspot.com/features
- node node_modules/lighthouse-ci/runlighthouse.js --score=$LH_MIN_PASS_SCORE $LH_TEST_URL