-
Notifications
You must be signed in to change notification settings - Fork 4
/
Tutorial10_AutomatedDeployment.sh
executable file
·64 lines (38 loc) · 1.81 KB
/
Tutorial10_AutomatedDeployment.sh
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
#!/bin/bash
set -e;
#
source ./scripts/manageShellVars.sh;
source ./scripts/util.sh;
checkForVirtualMachine;
checkNotRoot;
export SUDOUSER=$(who am i | awk '{print $1}');
collectSectionNames;
setSection 10;
source "${BINDIR}/${SECTION}_functions.sh";
source ./scripts/explain.sh
RUN_RULE="";
explain ${BINDIR}/Introduction.md
explain ${BINDIR}/PrepareAndroidSDK_A.md;
explain ${BINDIR}/PrepareAndroidSDK_B.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then PrepareAndroidSDK_B; fi;
explain ${BINDIR}/BuildAndroidAPK_A.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then BuildAndroidAPK_A; fi;
explain ${BINDIR}/BuildAndroidAPK_B.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then BuildAndroidAPK_B; fi;
explain ${BINDIR}/DeployToMeteorServers.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then DeployToMeteorServers; fi;
explain ${BINDIR}/PrepareCIwithAndroidSDK.md MORE_ACTION # CODE_BLOCK MANUAL_INPUT_REQUIRED
if [ "${RUN_RULE}" != "n" ]; then PrepareCIwithAndroidSDK; fi;
explain ${BINDIR}/PrepareCIwithAndroidBuilder.md MORE_ACTION # CODE_BLOCK MANUAL_INPUT_REQUIRED
if [ "${RUN_RULE}" != "n" ]; then PrepareCIwithAndroidBuilder; fi;
explain ${BINDIR}/PrepareCIwithMeteorDeployment.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then PrepareCIwithMeteorDeployment; fi;
explain ${BINDIR}/ShowStatusSymbol.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then ShowStatusSymbol; fi;
explain ${BINDIR}/VersionMonitorTemplate.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then VersionMonitorTemplate; fi;
explain ${BINDIR}/PushFinalChanges.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then PushFinalChanges; fi;
## FLAG FOR INCLUSION IN SLIDES - ${BINDIR}/Fin.md explain
### endOfSectionScript ${SECTION_NUM} ${SECTION} ${NEXT_SECTION};
exit 0;