-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
49 lines (43 loc) · 1.12 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
language: python
sudo: required
dist: trusty
addons:
apt:
packages:
- python-pip
- xsltproc
- enscript
- ghostscript
- texlive-latex-base
- latex-beamer
- lmodern
- texlive-fonts-recommended
env:
global:
- GOPATH="${TRAVIS_BUILD_DIR}/.go_workspace"
- mmark_src=github.com/miekg/mmark/mmark
- mmark=./mmark
install:
- pip install xml2rfc
- if head -1 -q *.md | grep '^\-\-\-' >/dev/null 2>&1; then gem install --no-doc kramdown-rfc2629; fi
- if head -1 -q *.md | grep '^%%%' >/dev/null 2>&1; then go get "$mmark_src" && go build "$mmark_src"; fi
script:
- wget https://github.com/jgm/pandoc/releases/download/2.2.1/pandoc-2.2.1-linux.tar.gz
- tar xvzf pandoc-2.2.1-linux.tar.gz
- sudo cp ./pandoc-2.2.1/bin/* /usr/bin/
- make
- make pdf
- cd slides; make; cd ..;
after_success:
- mkdir public
- cd public
- mv ../*.txt ../*.html ../*.pdf ../slides/*.pdf .
- sh ../.travisci/make-index.py . > index.html
- cd ..
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # set this in travis-ci dashboard
on:
branch: master
local_dir: public