-
Notifications
You must be signed in to change notification settings - Fork 200
/
.travis.yml
38 lines (38 loc) · 1.06 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
language: ruby
cache: bundler
rvm:
- 3.0.2
addons:
apt:
packages:
- openjdk-8-jre
before_install:
- gem update --system
- gem install bundler
- nvm install node
install:
- bundle install --jobs=3 --retry=3
- pip install --user html5validator
- npm install -g pa11y-ci
script:
- bundle exec jekyll clean && bundle exec jekyll build
- html5validator --Werror --also-check-css --also-check-svg --root _site/
- |
(bundle exec jekyll server -d _tmp_site & echo $! >&3) 3>jekyll.pid | grep -q 'Server running' && \
pa11y-ci --sitemap 'http://localhost:4000/whiteglass/sitemap.xml' \
--sitemap-find 'https://yous.github.io/whiteglass' --sitemap-replace 'http://localhost:4000/whiteglass' && \
kill -9 "$(cat jekyll.pid)" && \
rm -f jekyll.pid && \
rm -rf _tmp_site
branches:
only:
- master
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir: _site
target_branch: gh-pages
on:
branch: master