add job to check whether database schema needs updating, closes #2493

This commit is contained in:
Hans-Christoph Steiner 2023-02-23 16:46:57 +01:00 committed by Torsten Grote
parent 0788688e75
commit ab2e855f26
1 changed files with 12 additions and 0 deletions

View File

@ -85,6 +85,18 @@ errorprone:
- cat config/errorprone.gradle >> app/build.gradle
- ./gradlew -Dorg.gradle.dependency.verification=lenient assembleDebug
database schema:
stage: test
image: debian:bullseye-backports
script:
- apt-get update
- apt-get -qy --no-install-recommends install default-jdk-headless git sdkmanager
- export ANDROID_HOME=/opt/android-sdk
- export ANDROID_COMPILE_SDK=`sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' app/build.gradle`
- sdkmanager "platforms;android-$ANDROID_COMPILE_SDK" "build-tools;30.0.3"
- ./gradlew :libs:database:kaptDebugKotlin
- git --no-pager diff --exit-code
# Run the tests in the emulator. Each step is broken out to run on
# its own since the CI runner can have limited RAM, and the emulator
# can take a while to start.