-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
52 lines (50 loc) · 1.49 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
dist: trusty
sudo: required
language: ruby # for Jekyll
rvm:
- 2.2
gemfile: gh-pages/Gemfile
cache: bundler
branches:
only:
- master
# tags
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
before_install:
# LaTeX stuff
- |
sudo apt-get install -qq --no-install-recommends texlive \
texlive-latex-extra texlive-xetex \
latex-beamer ghostscript \
fonts-lmodern fonts-droid fonts-noto
- xelatex --version
# Test toolkits
- python --version # need ~2.7.12 for adequate TLS; does not work with trusty's default 2.7.6
# Dirty hack for what seems like a bug in linkchecker
- |
pip install --user linkchecker && \
find ~/.local/lib -regex '.*/linkcheck/__init__.py' -print0 | \
xargs -0 sed -i -e "s/requests.__version__ <= '2.2.0'/map(int, requests.__version__.split('.')) <= [2, 2, 0]/"
- ~/.local/bin/linkchecker --version
- pip install --user html5validator
- ~/.local/bin/html5validator --version
# Markdown linter
- gem install mdl --bindir ~/.local/bin
- ~/.local/bin/mdl --version
script:
- make LECTURE_FONTS=noto+droid -j 2 all-beamer
# On this step, we want to test a Jekyll build only, hence the NOFILES flag.
# We shouldn't care if the previous step fails
- make GH_PAGES_NOFILES=1 test
# Kill Jekyll if the previous command exited prematurely
- make gh-kill
before_deploy:
- make clean-gh
deploy:
provider: pages
skip_cleanup: true
local_dir: gh-pages
github_token: $GITHUB_TOKEN
fqdn: lectures.ostrov.ski
on:
tags: true