forked from dart-lang/site-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (49 loc) · 1.32 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
language: ruby
sudo: false
cache:
bundler: true
directories:
# - $HOME/[path]
rvm: 2.4.2
addons:
chrome: stable
env:
global:
- DISPLAY=:99.0
- JEKYLL_ENV=production
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
matrix:
- TASK=./scripts/dartfmt.sh
- TASK=./scripts/analyze-and-test-examples.sh
- TASK=./deploy/cibuild
before_install:
- nvm install 8
- source ./scripts/env-set.sh
- ./scripts/before-install.sh
install:
- ./scripts/install.sh
- ./scripts/write-ci-info.sh -v
before_script:
- ./scripts/browser.sh
script:
- $TASK
after_script:
# Just FYI test. Won't fail the build if it has errors.
- if [[ $TASK == *build* ]]; then ./deploy/check_sitemap.rb; fi
- if [[ $TASK == *build* ]]; ./deploy/html_proof.rb; fi
# # Checks for bad HTML, broken links, and forces build to fail if it fails.
# # (By default, Travis doesn't fail builds after deployment.)
# - "./deploy/html_proof.rb || travis_terminate 1"
# branch whitelist
# branches:
# only:
# - master # test the master branch
# - /stage-(.*)/ # test every branch which starts with "stage-"
deploy:
- provider: script
script: ./deploy/deploy-firebase.sh
skip_cleanup: true
on:
repo: dart-lang/site-www
branch: master
condition: $TASK == *build*