forked from philipbelesky/groundhog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.2 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
language: generic # Need python and node
cache:
pip: true
bundler: true
npm: true
# Setup pandoc for building
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y pandoc
- sudo apt-get install pandoc-citeproc
script:
- cd site
- bundler install
- npm install
- pyenv install # Need python 3.4 at least for pathlib
- bash ./compile_assets.sh
- touch ./downloads/plugin/groundhog.zip # Fake file for link checking
# Note -d; need to build into subdirectory to simulate GH pages baseURL
- bundle exec jekyll build -d _site/groundhog --config=_config.yml,_config_gh.yml
- htmlproofer ./_site
# Branch whitelist, only for GitHub Pages
branches:
only:
- develop
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # Speeds up installation of html-proofer
addons:
apt:
packages:
- libcurl4-openssl-dev
sudo: false # Route your build to the container-based infrastructure for a faster build
# Copy compiled site over to Github pages
deploy:
provider: pages
local-dir: ./site/_site/groundhog
target-branch: gh-pages
email: deploy@travis-ci.org
name: Deployment Bot
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
on:
branch: develop