-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (30 loc) · 919 Bytes
/
.travis.yml
File metadata and controls
35 lines (30 loc) · 919 Bytes
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
language: ruby
sudo: false
cache: bundler
addons:
apt:
packages:
- ghostscript
- libimage-exiftool-perl
before_install:
- wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
-P /tmp
- tar xf /tmp/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz -C /home/travis
- export PATH="/home/travis/wkhtmltox/bin:$PATH"
script:
- bundle exec ruby update-release-info.rb
- bundle exec jekyll build
- touch _site/.nojekyll
- ruby -run -e httpd _site -p 4000 > /dev/null 2>&1 &
- sleep 3 # Give httpd some time to start
- ./make-pdf.sh
- mv *.pdf _site/assets/pdf/
deploy:
provider: pages
skip-cleanup: true # Keep HTML files generated during 'script'
local-dir: _site
github-token: $GITHUB_TOKEN
target-branch: master
keep-history: false # Force update single commit on master branch
on:
branch: jekyll