forked from cpp-linear-algebra/prior-art
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 816 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
sudo: required
language: generic
services:
- docker
branches:
only:
- master
before_script :
- docker pull jayeshbadwaik/texdocker
script:
- CONTAINER=texdocker
- SRC=$PWD
- docker run --cap-add=SYS_PTRACE -t -d --name ${CONTAINER} jayeshbadwaik/${CONTAINER} bash
- docker exec ${CONTAINER} /bin/bash -c "mkdir -p /document"
- docker cp $SRC/. ${CONTAINER}:/document
- docker exec ${CONTAINER} /bin/bash -c "source /root/.bashrc && cd /document && make verbose"
- mkdir /tmp/pages
- docker cp texdocker:/document/prior-art-for-linear-algebra.pdf /tmp/pages/
- docker stop ${CONTAINER}
- docker rm ${CONTAINER}
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
local-dir: /tmp/pages/
keep-history: true