forked from dart-lang/site-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 966 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
42
43
language: dart
dart: [stable, dev]
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="./tool/build.sh --check-links"
- TASK="./tool/check-code.sh"
- TASK="./tool/analyze-and-test-examples.sh"
before_install:
- source ./tool/env-set.sh
- ./tool/before-install.sh
install:
- ./tool/install.sh
- ./tool/shared/write-ci-info.sh -v
script: $TASK
deploy:
- provider: script
script: ./tool/shared/deploy.sh --robots ok default
skip_cleanup: true
on:
repo: dart-lang/site-www
branch: master
condition: $TASK == *tool/build.sh* && $TRAVIS_DART_VERSION == stable && $TRAVIS_EVENT_TYPE == push
# Only run Travis jobs for named branches (to avoid double builds for each PR)
branches:
only: [master, /^\d\.x$/, /^\d-dev$/, /travis-build/]