-
Notifications
You must be signed in to change notification settings - Fork 20
/
.robrt.json
78 lines (69 loc) · 2.83 KB
/
.robrt.json
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
70
71
72
73
74
75
76
77
{
"prepare" : {
"dockerfile" : {
"type" : "path",
"data" : ".robrt.Dockerfile"
}
},
"build" : {
"cmds" : [
"export DOCKER_HOST_IP=$(route -n | awk '/UG[ \t]/{print $2}')",
"env",
"node --version",
"cd $ROBRT_REPOSITORY_DIR/generator",
"cp docs/fakesudo.sh /usr/bin/sudo",
"add-apt-repository -y ppa:haxe/snapshots",
"apt-get update",
"apt-get install -y haxe neko",
"haxelib setup /usr/share/haxe/lib",
"haxelib --global install hmm",
"haxelib --global run hmm setup",
"haxelib --global list",
"hmm install",
"haxelib list",
"haxe -D travis build.hxml",
"npm pack",
"npm install -g manu*.tgz",
"manu unit-tests",
"mkdir -p $ROBRT_OUTPUT_DIR/bin",
"cp manu*.tgz $ROBRT_OUTPUT_DIR/bin/",
"cd $ROBRT_REPOSITORY_DIR",
"if [ -z ${NO_CAP_GH_TOKEN+x} ]; then echo Skipped; else git remote set-url origin https://$NO_CAP_GH_TOKEN:[email protected]/ITDP/the-online-brt-planning-guide; fi",
"git lfs pull 2>&1 | tee .lfs-pull.log || echo \"error exit code: $?\" >> .lfs-pull.log",
"git lfs logs last 2>&1 | tee .lfs-logs-last.log",
"grep -qi 'no logs to show' .lfs-logs-last.log",
"! grep -qi 'error\\|\\(batch response\\)' .lfs-pull.log",
"cd $ROBRT_REPOSITORY_DIR",
"cp LICENSE.md $ROBRT_OUTPUT_DIR/",
"export DEBUG=1",
"export TEX_NO_POSITIONS=1",
"favicon=grey",
"if [ \"${FORCE_GREY_FAVICON}\" -eq 1 ]; then echo Skipped; elif [ \"${ROBRT_IS_PR}\" -eq 1 ]; then favicon=red; elif [ \"${ROBRT_HEAD}\" = master ]; then favicon=green; fi",
"cp guide/{itdp_$favicon,favicon}.ico",
"manu generate guide/index.manu .generated",
"find guide -type f -iname '*.manu' -print0 | xargs -0 manu stat tokens",
"cd $ROBRT_REPOSITORY_DIR",
"if [ -z ${ASSET_URL_PREFIX+x} ]; then echo Skipped; else manu asset-server store $DOCKER_HOST_IP 6668 .generated/html/assets; fi",
"if [ -z ${ASSET_URL_PREFIX+x} ]; then echo Skipped; else rm -rf .generated/html/assets; fi",
"cp -r .generated/html $ROBRT_OUTPUT_DIR/guide",
"unset DEBUG",
"cd $ROBRT_REPOSITORY_DIR/server/cover",
"hmm install",
"haxelib list",
"haxe build.hxml",
"cd $ROBRT_REPOSITORY_DIR",
"node server/cover/bin/cover-generator.js .generated/html/table-of-contents.html server/cover/data server/cover/ready/html",
"cp -r server/cover/ready/html $ROBRT_OUTPUT_DIR/cover",
"cd $ROBRT_REPOSITORY_DIR",
"cp -r server/search $ROBRT_OUTPUT_DIR/search",
"cd $ROBRT_REPOSITORY_DIR",
"ls -l .generated/pdf/fonts",
"server/compress-pdf-assets.sh .generated/pdf 150",
"cd .generated/pdf/",
"latexmk -lualatex -pdflatex='lualatex -interaction=nonstopmode' book.tex",
"mkdir -p $ROBRT_OUTPUT_DIR/pdf $ROBRT_OUTPUT_DIR/guide/pdf",
"cp book.pdf $ROBRT_OUTPUT_DIR/guide/pdf/the-brt-planning-guide.pdf",
"cp book.log $ROBRT_OUTPUT_DIR/pdf/guide_lualatex.log"
]
}
}