-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
42 lines (36 loc) · 928 Bytes
/
.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
language: C
sudo: false
branches:
only:
- master
addons:
apt:
packages:
- cabal-install-2.0
- ghc-8.2.2
sources:
- hvr-ghc
cache:
directories:
- $HOME/.cabal/
- $HOME/.ghc/
- $HOME/.agda/
install:
- export PATH=$HOME/.cabal/bin:/opt/ghc/8.2.2/bin:/opt/cabal/2.0/bin:$PATH
- cd travis/
- travis_wait 50 ./install_agda.sh
script:
- cd ../src/
- agda --html linear/README.agda
- cd ../
- mv src/html/* .
after_success:
# uploading to gh-pages
- git init
- git config --global user.name "Travis CI bot"
- git config --global user.email "[email protected]"
- git remote add upstream https://[email protected]/gallais/typing-with-leftovers.git &>/dev/null
- git fetch upstream && git reset upstream/gh-pages
- git add -f \*.html \*.css
- git commit -m "Automatic HTML update via Travis"
- git push -q upstream HEAD:gh-pages &>/dev/null;