forked from dart-lang/site-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.59 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: dart
dart: stable
cache:
timeout: 300
bundler: true
directories:
- $HOME/.pub-cache
- $HOME/.nvm
- $HOME/.rvm
- node_modules
env:
global:
- JEKYLL_ENV=production
- TZ=US/Pacific # normalize build timestamp
matrix:
- TASK="./scripts/check-code.sh"
- TASK="./scripts/analyze-and-test-examples.sh"
- TASK="bundle exec jekyll build"
matrix:
# Once we start building under stable again, reactivate the following exclusion:
# exclude:
# - env: TASK="bundle exec jekyll build"
# dart: dev
before_install:
- source ./scripts/env-set.sh
- ./scripts/before-install.sh
install:
- ./scripts/install.sh
- ./scripts/write-ci-info.sh -v
script:
- $TASK
after_script:
# TODO(https://github.com/dart-lang/site-www/issues/1051): reinstate link checking
# - if [[ $TASK == *build* ]]; then ./scripts/shared/check-links.sh || travis_terminate 1; fi
# Just FYI test. Won't fail the build if it has errors.
# - if [[ $TASK == *build* ]]; then ./deploy/check_sitemap.rb; fi
# - if [[ $TASK == *build* ]]; then ./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"
deploy:
- provider: script
script: ./deploy/deploy-firebase.sh
skip_cleanup: true
on:
repo: dart-lang/site-www
branch: master
condition: $TASK == *build*
# Only run Travis jobs for named branches (to avoid double builds for each PR)
branches:
only: [master, /^\d\.x$/, /^\d-dev$/, /travis-build/]