Skip to content

Commit

Permalink
Add second kokoro config that runs tests
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 577012300
  • Loading branch information
copybara-androidxtest committed Oct 27, 2023
1 parent 24b3f6b commit 95821fe
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
build_file: "android-test-releases/kokoro/gcp_ubuntu_docker/kokoro_build.sh"
build_file: "android-test-releases/kokoro/build_artifacts.sh"

action {
define_artifacts {
Expand Down
1 change: 1 addition & 0 deletions kokoro/axt_test_artifacts.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build_file: "android-test-releases/kokoro/test_artifacts.sh"
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions kokoro/test_artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Fail on any error.
set -e

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 zulu17-jdk
export JAVA_HOME="$(update-java-alternatives -l | grep "1.17" | head -n 1 | tr -s " " | cut -d " " -f 3)"

cd gradle-tests
./gradlew nexusOneApi30DebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect -Dandroid.experimental.androidTest.numManagedDeviceShards=1

0 comments on commit 95821fe

Please sign in to comment.