-
Notifications
You must be signed in to change notification settings - Fork 336
Expand file tree
/
Copy pathtest_artifacts.sh
More file actions
19 lines (14 loc) · 891 Bytes
/
test_artifacts.sh
File metadata and controls
19 lines (14 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Fail on any error.
set -e
# move to where kokoro put the repository root
cd "${KOKORO_ARTIFACTS_DIR}/github/android-test-releases"
unzip "${KOKORO_GFILE_DIR}/axt_m2repository.zip" -d "/root/.m2"
curl -s https://repos.azul.com/azul-repo.key | sudo gpg --dearmor -o /usr/share/keyrings/azul.gpg
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | sudo tee /etc/apt/sources.list.d/zulu.list
apt-get update
apt-get install -y zulu21-jdk
export JAVA_HOME="$(update-java-alternatives -l | grep "1.21" | head -n 1 | tr -s " " | cut -d " " -f 3)"
cd gradle-tests
# TODO(b/406071564): remove exclusion of espresso-device tests once they work in kokoro env
./gradlew nexusOneDebugAndroidTest --stacktrace -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect -Dandroid.experimental.androidTest.numManagedDeviceShards=1