This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
69 lines (68 loc) · 2.73 KB
/
wercker.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
# Read more about containers on our dev center
# http://devcenter.wercker.com/docs/containers/index.html
box: trileg/latex-redpen:latest
# This is the build pipeline. Pipelines are the core of wercker
# Read more about pipelines on our dev center
# http://devcenter.wercker.com/docs/pipelines/index.html
build:
# The steps that will be executed on build
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
- script:
name: Install LaTeX stylefiles
code: |
mkdir /usr/share/texmf-dist/tex/latex/mylatex
mv ./stylefiles/* /usr/share/texmf-dist/tex/latex/mylatex/
mktexlsr
updmap
- script:
name: Proofread thesis by RedPen
code: |
redpen -c redpen-conf-ja.xml -f latex thesis/0_Abstruct.tex
redpen -c redpen-conf-ja.xml -f latex thesis/1_Introduction.tex
redpen -c redpen-conf-ja.xml -f latex thesis/2_Related.tex
redpen -c redpen-conf-ja.xml -f latex thesis/3_Knowledge.tex
redpen -c redpen-conf-ja.xml -f latex thesis/4_System.tex
redpen -c redpen-conf-ja.xml -f latex thesis/5_Evaluation.tex
redpen -c redpen-conf-ja.xml -f latex thesis/6_Conclusion.tex
- script:
name: Compile thesis
code: |
cd thesis
platex -halt-on-error -interaction=nonstopmode -file-line-error -no-shell-escape thesis.tex
dvipdfmx thesis.dvi
platex -halt-on-error -interaction=nonstopmode -file-line-error -no-shell-escape thesis.tex
dvipdfmx thesis.dvi
cd ..
- script:
name: Proofread summary by RedPen
code: |
redpen -c redpen-conf-ja.xml -f latex summary/1_Introduction.tex
redpen -c redpen-conf-ja.xml -f latex summary/2_System.tex
redpen -c redpen-conf-ja.xml -f latex summary/3_Evaluation.tex
redpen -c redpen-conf-ja.xml -f latex summary/4_Conclusion.tex
- script:
name: Compile summary
code: |
cd summary
platex -halt-on-error -interaction=nonstopmode -file-line-error -no-shell-escape summary.tex
dvipdfmx summary.dvi
platex -halt-on-error -interaction=nonstopmode -file-line-error -no-shell-escape summary.tex
dvipdfmx summary.dvi
cd ..
- script:
name: Clean unneeded files
code: |
cd thesis
ls | grep thesis | grep -v -E '.tex$|.pdf$' | xargs rm
cd ..
cd summary
ls | grep summary | grep -v -E '.tex$|.pdf$' | xargs rm
cd ..
- leipert/git-push:
gh_oauth: $GIT_TOKEN
repo: trileg/master-thesis
branch: master
basedir: .