forked from w3c/wai-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (45 loc) · 1.46 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
language: ruby
rvm:
- 2.4.1
before_script:
- chmod +x ./script/cibuild-preview.sh # or do this locally and commit
- chmod +x ./script/cibuild-live.sh # or do this locally and commit
# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
# script: ./script/cibuild.sh
# branch whitelist, only for GitHub Pages
branches:
only:
- master # test the gh-pages branch
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation
sudo: false # route your build to the container-based infrastructure for a faster build
cache: bundler # caching bundler gem packages will speed up build
# Optional: disable email notifications about the outcome of your builds
notifications:
email: false
jobs:
include:
- stage: deploy
script: ./script/cibuild-preview.sh
deploy: &preview
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
target-branch: gh-pages
local-dir: _site
on:
branch: master
- stage: deploy
script: ./script/cibuild-live.sh
deploy: &live
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
target-branch: live
local-dir: _site
on:
branch: master