forked from spring-attic/spring-android-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.sh
executable file
·33 lines (29 loc) · 1.02 KB
/
ci.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
#!/bin/bash
cd $(dirname $0)
if [ ! -d "$ANDROID_HOME" ]; then
if [[ "$OSTYPE" == "linux-gnu" ]]; then
export ANDROID_HOME=${WORKSPACE}/android-sdk-linux
export PATH=${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}
wget http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz -nv
tar xzf android-sdk_r22.6.2-linux.tgz
echo "y" | android update sdk -f -u -a -t tools,platform-tools,build-tools-19.0.3,build-tools-19.0.0,build-tools-18.1.1,build-tools-18.1.0,build-tools-18.0.1,build-tools-17.0.0,android-19,extra-android-m2repository,extra-android-support
#elif [[ "$OSTYPE" == "darwin"* ]]; then
else
echo "ANDROID_HOME is not available"
exit
fi
fi
function build {
./$1/ci.sh
ret=$?
if [ $ret -ne 0 ]; then
exit $ret
fi
}
build spring-android-basic-auth
build spring-android-facebook-client
build spring-android-news-reader
build spring-android-showcase
build spring-android-twitter-client
build spring-android-twitter-search
exit