forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
55 lines (46 loc) · 1.29 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
language: node_js
node_js: 10
sudo: false
# 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
env:
global:
- JEKYLL_ENV=production
- TZ=US/Pacific # normalize build timestamp
matrix:
- TASK="./tool/check-examples.sh"
# - TASK="rake checklinks" # Run jekyll build and check links
before_install:
- rvm install 2.4.3
- rvm use 2.4.3
- chmod +x ./tool/check-examples.sh
- chmod +x ./tool/build_check_deploy.sh
- ./tool/before_install.sh
script: $TASK
# deploy:
# - provider: script
# script:
# - ! type -t firebase && npm install --global [email protected]
# - ./tool/deploy-firebase.sh
# skip_cleanup: true
# on:
# repo: flutter-es/website
# branch: master
# Only run Travis jobs for named branches (to avoid double builds for each PR)
branches:
only: [master, /^\d\.x$/, /^\d-dev$/, /travis-build/]
cache:
timeout: 300
bundler: true
directories:
- $HOME/.pub-cache
- $HOME/.nvm
- $HOME/.rvm
- node_modules