-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
64 lines (55 loc) · 1.58 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
sudo: required
services:
- docker
#branches:
# only:
# - master
before_install:
# MikTeX
#- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
#- echo "deb http://miktex.org/download/ubuntu xenial universe" | sudo tee /etc/apt/sources.list.d/miktex.list
#- sudo apt-get update
#- sudo apt-get install miktex
# TeX Live 2015
#- sudo add-apt-repository ppa:jonathonf/texlive-2015 -y
#- sudo apt-get update
#- sudo apt-get install texlive texlive-latex-extra texlive-lang-czechslovak
#- aptitude search texlive
# make4ht
#- sudo apt-get install latexmk
#- sudo apt-get install pandoc
#- git clone https://github.com/michal-h21/make4ht
#- cd make4ht
#- ls -la
#- make
script:
- pwd
- ls -la
- mkdir output
- ls -la
- cd output
- OUTPUT_DIR="$(pwd)"
- echo "${OUTPUT_DIR}"
- cd ..
#- sudo docker build -t paralj-test:0.1 .
#- sudo docker run -v "${OUTPUT_DIR}:/output" paralj-test:0.1
- sudo docker pull jarekparal/rb-latex-pdf-html-build:RoboticsManual
- sudo docker run -v "${OUTPUT_DIR}:/output" jarekparal/rb-latex-pdf-html-build:RoboticsManual
- ls -la
- ls -la output
- ls -la output/_pdf
- ls -la output/_html
- sudo cp output/_pdf/dokumentace.pdf output/_html/RoboticsManual.pdf
before_deploy:
- git config --local user.name "RoboticsBrno"
- git config --local user.email "[email protected]"
# - git tag "RoboticsManual_$(date +'%Y-%m-%d_%H-%M-%S')"
deploy:
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: output/_html/
on:
branch:
- master