forked from prebid/prebid-mobile-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestprebid.sh
executable file
·30 lines (24 loc) · 1.05 KB
/
testprebid.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
#! /bin/bash
function echoX {
echo -e "PREBID TESTLOG: $@"
}
echoX "start unit tests"
cd PrebidMobile
./gradlew clean test
echoX "assemble debug apk"
./gradlew clean assembleDebug
if [ ! -e DemoApp/build/outputs/apk/debug/DemoApp-debug.apk ];then
echoX "apk creation unsuccessful"
fi
echoX "copy debug apk to destination path"
mkdir -p IntegrationTests/apk && cp DemoApp/build/outputs/apk/debug/DemoApp-debug.apk IntegrationTests/apk/DemoApp.apk
if [ ! -e IntegrationTests/apk/DemoApp.apk ]; then
echoX "file copy unsuccessful"
fi
echoX "start integration tests"
cd IntegrationTests
bundle install
bundle exec calabash-android resign apk/DemoApp.apk
bundle exec calabash-android build apk/DemoApp.apk
#bundle exec test-cloud submit apk/DemoApp.apk 435c130f3f6ff5256d19a790c21dd653 --devices 2ae0b5a0 --series "master" --locale "en_US" --app-name "DemoApp" --user [email protected]
bundle exec test-cloud submit apk/DemoApp.apk 435c130f3f6ff5256d19a790c21dd653 --devices b2a05af9 --series "master" --locale "en_US" --app-name "DemoApp" --user [email protected]