forked from bumptech/glide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis_samples.sh
executable file
·53 lines (44 loc) · 1.04 KB
/
travis_samples.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
#!/usr/bin/env bash
set -e
./gradlew :samples:flickr:build \
:samples:giphy:build \
:samples:contacturi:build \
:samples:gallery:build \
:samples:imgur:build \
:samples:svg:build \
--parallel \
-PERROR_PRONE="false" &
pid=$!
if [ ! "$firebase_enabled" == "true" ]; then
wait $pid
echo "Unable to run Firebase tests for pull requests, exiting"
exit 0
else
./scripts/install_firebase.sh
wait $pid
fi
declare -a samples=("flickr"
"giphy"
"contacturi"
"gallery"
"imgur"
"svg")
pids=()
for sample in "${samples[@]}"
do
sample_dir="samples/${sample}/build/outputs/apk/debug"
sample_apk="${sample_dir}/${sample}-debug.apk"
./google-cloud-sdk/bin/gcloud firebase test android run \
--type robo \
--app $sample_apk \
--device model=Nexus6P,version=26,locale=en,orientation=portrait \
--project android-glide \
--no-auto-google-login \
--timeout 5m \
&
pids+=("$!")
done
for current in "${pids[@]}"
do
wait $current
done