forked from HE-Arc/slides-devweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (54 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
dist: trusty
sudo: required
language: generic
cache: apt
env:
global:
- PANDOC_VERSION=2.2.2.1
- EMOJIONE_VERSION=3.1.2
addons:
apt:
packages:
- fonts-linuxlibertine
- latex-xcolor
- latexmk
- librsvg2-bin
- lmodern
- make
- texlive
- texlive-fonts-extra
- texlive-fonts-recommended
- texlive-generic-recommended
- texlive-latex-extra
- texlive-math-extra
- texlive-xetex
- texlive-lang-french
before_install:
- wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb -O pandoc.deb
- sudo dpkg -i pandoc.deb
install:
- wget https://github.com/Ranks/emojione-assets/archive/${EMOJIONE_VERSION}.tar.gz -O emojione-assets.tgz
- tar xzf emojione-assets.tgz
- mv emojione-assets-${EMOJIONE_VERSION} emojione-assets
- wget https://raw.githubusercontent.com/mreq/xelatex-emoji/master/xelatexemoji.sty
- wget https://raw.githubusercontent.com/mreq/xelatex-emoji/master/xelatexemoji-flags.sty
- sed -i 's/^\(\\usepackage{amsmath}\)/%\1/' xelatexemoji.sty
- sed -i 's/^\(\\providecommand{\\xelatexemojipath}\)/%\1/' xelatexemoji.sty
script:
- make all
after_success:
- >
test "${TRAVIS_PULL_REQUEST}" = "false" \
&& test "${TRAVIS_BRANCH}" = "master" \
&& ( \
make build/index.html
cd build
rm -f *.tmp *.md
git init
git config user.name "TravisCI"
git config user.email "[email protected]"
git add .
git commit -m "Deployed to github pages"
git push -f -q "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}" master:gh-pages
) \
|| echo "Nothing to do outside the master branch."