From 255b377ab777186d43c60e865dd6fc50fdc64513 Mon Sep 17 00:00:00 2001 From: Robert Buessow Date: Sat, 14 Oct 2023 21:21:48 +0200 Subject: [PATCH 1/2] Enable androidTest in circleCI. For now only for database:impl package, since build doesn't work for others. --- .circleci/config.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5cea17beda..770c27c8ed 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,22 +17,23 @@ jobs: tag: 2023.07.1 steps: - # Checkout the code as the first step. - checkout + - android/change-java-version: java-version: 17 - # The next step will run the unit tests + + - android/start-emulator-and-run-tests: + system-image: system-images;android-29;google_apis;x86 + # Compilee while the emulator starts to use the time. + post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources database:impl:compileFullDebugAndroidTestSources + test-command: ./gradlew database:impl:connectedFullDebugAndroidTest + - android/run-tests: test-command: ./gradlew testFullDebugUnitTest - android/run-tests: test-command: ./gradlew --stacktrace jacocoAllDebugReport - # Then start the emulator and run the Instrumentation tests! - # - android/start-emulator-and-run-tests: - # test-command: ./gradlew connectedDebugAndroidTest - # system-image: system-images;android-25;google_apis;x86 - # And finally run the release build # - run: # name: Assemble release build From a01cef1bcea4479320be378873a891daa1cd4b09 Mon Sep 17 00:00:00 2001 From: Robert Buessow Date: Sat, 14 Oct 2023 21:26:31 +0200 Subject: [PATCH 2/2] Remove tab from .circlci/config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 770c27c8ed..bd2004e921 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,7 @@ jobs: - android/start-emulator-and-run-tests: system-image: system-images;android-29;google_apis;x86 - # Compilee while the emulator starts to use the time. + # Compile while the emulator starts to use the time. post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources database:impl:compileFullDebugAndroidTestSources test-command: ./gradlew database:impl:connectedFullDebugAndroidTest