-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 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
language: ruby
rvm:
- 2.5.3
addons:
apt:
packages:
- libcurl4-openssl-dev # https://github.com/typhoeus/typhoeus/issues/568
before_script:
- npm install -g bower autotrack
- bower install
- autotrack -o src/_assets/vendor/ga/out.js -p outboundLinkTracker
script:
- bundle exec jekyll build --config _config.yml,_config.production.yml --trace
- bundle exec htmlproofer ./www
after_success: |
if [ -n "$GITHUB_API" ]; then
cd "$TRAVIS_BUILD_DIR/www"
git init
git checkout --orphan gh-pages
git add .
git status
git -c user.name='travis' -c user.email='[email protected]' commit -m stage
# Make sure to make the output quiet, or else the API token will leak!
# This works because the API key can replace your password.
git push -f -q https://burden:[email protected]/burden/burdendotcc gh-pages &2>/dev/null
cd "$TRAVIS_BUILD_DIR"
fi
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
sudo: false # route your build to the container-based infrastructure for a faster build