forked from leanprover/tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (52 loc) · 2.19 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
language: emacs-lisp
os:
- linux
cache: apt
env:
global:
# GH_TOKEN=[secure] (to push to osx/windows repo under soonhokong)
- secure: "LAgBomK36BzF2mN/lOwua+gDzLgF6RyuMYBjMlP5KY3knUZT8m/9wff2GlWGm87anb6aIJH69ERjVyFU4sWi9qcD+26vs1m9agMFxuqTfpibeDoz/rd9D/9LA3mNeO6v5kR2FTQ/OTTC6nMC4olRxdzz22Jg9ly7cNzfFPuSGFA="
# REPO=BLESSED (to perform extra stuff only for pushes to the blessed repo)
- secure: "Du/ZXFXdhRZL6AU6t6G8A3BNr3oPpHK4h2UCK00b+bgonHy7kDgTE0YxRVOf8VpXqfJwekzT4hWJhnKXasTp5avNEVEbdWC4nyM4tZbl6a8g8iI3Oo+JB6seSO6fIhrv6sZ7BCa6iuKDwzWJ0sQnXL+kx/zUqcle5eVUu5ic/24="
matrix:
- EVM_EMACS=emacs-24.3-bin
- EVM_EMACS=emacs-24.4-bin
before_install:
- sudo mkdir /usr/local/evm
- sudo chown travis:travis /usr/local/evm
- export PATH="/home/travis/.cask/bin:$PATH"
- export PATH="/home/travis/.evm/bin:$PATH"
- curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash
- evm install $EVM_EMACS --use
- curl -fsSkL https://raw.github.com/cask/cask/master/go | python
- cask
- evm list
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository --yes ppa:leanprover/lean
- sudo apt-get update
- sudo apt-get install mercurial python2.7 texlive-latex-recommended texlive-humanities texlive-xetex texlive-science texlive-latex-extra texlive-fonts-recommended latexmk bibtex2html || true
- tar xvfz header/l3kernel.tar.gz -C ~/
install:
- sudo apt-get -qq install lean
script:
- EMACS_BIN=$(evm bin $EVM_EMACS) make
- if [[ "${REPO}" == "BLESSED" ]] && [[ "${TRAVIS_PULL_REQUEST}" == "false" ]] ; then
git config --global user.email "[email protected]" &&
git config --global user.name "Travis CI" &&
git checkout --orphan gh-pages &&
rm -f .git/index &&
git add -f *.html tutorial.pdf &&
git add css &&
git add fonts &&
git add -f js/* &&
sudo rm -rf pygments-main &&
git clean -fxd &&
git commit -m "Update `date -R`" &&
git push -q https://soonhokong:${GH_TOKEN}@github.com/leanprover/tutorial.git +HEAD:gh-pages &&
git checkout -f master;
fi
- make test
notifications:
email:
recipients: