forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
102 lines (84 loc) · 2.38 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
language: dart
dart: stable
os: linux
dist: xenial
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
# https://github.com/flutter/flutter/issues/6207
addons:
apt:
sources:
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
packages:
- lib32stdc++6
- libstdc++6
cache:
timeout: 1000
bundler: true
directories:
- $HOME/.pub-cache
- $HOME/.nvm
- $HOME/.rvm
- node_modules
jobs:
include:
- name: "Submodule commit: code check"
env:
- TASK="./tool/check-code.sh"
- name: "Submodule commit: jekyll build"
env:
- TASK="bundle exec jekyll build"
- name: "Dev channel: code check"
env:
- TASK="./tool/check-code.sh"
- CHANNEL=dev
- name: "Dev channel: jekyll build"
env:
- TASK="bundle exec jekyll build"
- CHANNEL=dev
- name: "Beta channel: code check"
env:
- TASK="./tool/check-code.sh"
- CHANNEL=beta
- name: "Beta channel: jekyll build"
env:
- TASK="bundle exec jekyll build"
- CHANNEL=beta
- name: "Stable channel: code check"
env:
- TASK="./tool/check-code.sh"
- CHANNEL=stable
- name: "Stable channel: jekyll build"
env:
- TASK="bundle exec jekyll build"
- CHANNEL=stable
allow_failures:
- name: "Submodule commit: code check"
- name: "Submodule commit: jekyll build"
- name: "Dev channel: code check"
- name: "Dev channel: jekyll build"
- name: "Beta channel: code check"
- name: "Beta channel: jekyll build"
env:
global:
- JEKYLL_ENV=production
- TZ=US/Pacific # normalize build timestamp
before_install:
- source ./tool/env-set.sh
- ./tool/before-install.sh
- if [[ ! -z $CHANNEL ]]; then ./flutter/bin/flutter channel $CHANNEL; fi
install:
- ./tool/install.sh
script: $TASK
after_script:
- if [[ $TASK == *build* ]]; then ./tool/shared/check-links.sh || travis_terminate 1; fi
deploy:
- provider: script
script: ./tool/shared/deploy.sh --robots ok default
skip_cleanup: true
on:
repo: flutter/website
branch: master
condition: $TASK == *build* && $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/]