-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
executable file
·69 lines (62 loc) · 2.18 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
63
64
65
66
67
68
69
language: generic
cache: apt
env:
global:
- PANDOC_VERSION=2.10.1
- EMOJIONE_VERSION=5.0.3
addons:
apt:
packages:
- fonts-inconsolata
- 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
# ===========================
# Setting up SSH Deploy keys
# Run the ssh-agent
- eval $(ssh-agent -s)
# Add the private SSH key. tr is used to fix line endings
- echo "${SSH_PRIVATE_DEPLOY_KEY}" | openssl base64 -A -d | tr -d '\r' | ssh-add - > /dev/null
# Check permissions to repository by listing the files and directories
- echo "======= Checking if current job has permissions on the repository ======="
- git ls-remote "ssh://[email protected]/${TRAVIS_REPO_SLUG}"
install:
- wget https://github.com/joypixels/emoji-assets/archive/v${EMOJIONE_VERSION}.tar.gz -O emojione-assets.tgz
- tar xf emojione-assets.tgz
- mv emoji-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 add .
git config user.name "TravisCI"
git config user.email "[email protected]"
git commit -m "Deployed to github pages"
git push -f -q --verbose "ssh://[email protected]/${TRAVIS_REPO_SLUG}" master:gh-pages
) \
|| echo "Nothing to do outside the master branch."