-
Notifications
You must be signed in to change notification settings - Fork 2
/
compile.sh
executable file
·60 lines (37 loc) · 1.21 KB
/
compile.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
#!/bin/bash
HOMEFOLDER="/home/$USER"
THORP="/Volumes/Android4.4.3/thor"
case "$(uname -s)" in
Linux)
;;
Darwin)
HOMEFOLDER="/Users/$USER"
;;
*)
echo "Unsupported OS"
exit 1
;;
esac
JAVA_VERSION=`java -version 2>&1`
if [[ $JAVA_VERSION == *"java version \"1.7"* ]]; then
echo "Using java 7"
else
echo "java 7 is required"
exit 1
fi
echo "Building the Gradle plugin"
(cd $THORP/GradlePlugin && ./gradlew install)
echo "Building the instrumentation"
(cd $THORP/Instrumentation/SootAndroidInstrumentation && ./gradlew install)
echo "Building the Espresso wrapper"
(cd $THORP/Robotium2Espresso && ./gradlew install)
echo "Compiling app: AnyMemo"
(cd $THORP/Applications/AnyMemo && ./gradlew assembleProDebug assembleProDebugTest)
echo "Compiling app: Car-Cast"
(cd $THORP/Applications/Car-Cast && ./gradlew assembleDebug assembleDebugTest)
echo "Compiling app: Numix Calculator"
(cd $THORP/Applications/com.numix.calculator && ./gradlew assembleDebug assembleDebugTest)
echo "Compiling app: Pocket Code"
(cd $THORP/Applications/Catroid-latest && ./gradlew assembleDebug assembleDebugTest)
echo "Compiling app: Pocket Paint"
(cd $THORP/Applications/Paintroid && ./gradlew assembleDebug assembleDebugTest)