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: 577967689
  • Loading branch information
copybara-androidxtest committed Oct 30, 2023
1 parent 24b3f6b commit 7429116
Show file tree
Hide file tree
Showing 5 changed files with 26 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.
24 changes: 24 additions & 0 deletions kokoro/test_artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/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"

# copybara:strip_begin
# LINT.IfChange
# copybara:strip_end
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
# copybara:strip_begin
# LINT.ThenChange(//depot/google3/third_party/android/androidx_test/.github/workflows/ci.yml)
# copybara:strip_end

0 comments on commit 7429116

Please sign in to comment.