22image : objectboxio/buildenv-android:2023年08月29日
33
44variables :
5- # Disable the Gradle daemon for Continuous Integration servers as correctness
6- # is usually a priority over speed in CI environments. Using a fresh
7- # runtime for each build is more reliable since the runtime is completely
8- # isolated from any previous builds.
5+ # Disable the Gradle daemon. Gradle may run in a Docker container with a shared
6+ # Docker volume containing GRADLE_USER_HOME. If the container is stopped after a job
7+ # Gradle daemons may get killed, preventing proper clean-up of lock files in GRADLE_USER_HOME.
98 # Use low priority processes to avoid Gradle builds consuming all build machine resources.
109 GRADLE_OPTS : " -Dorg.gradle.daemon=false -Dorg.gradle.priority=low"
1110
@@ -19,16 +18,7 @@ build-and-test:
1918 # Print Gradle and JVM version info
2019 - ./gradlew -version
2120 script :
22- # https://docs.gitlab.com/ee/ci/jobs/#expand-and-collapse-job-log-sections
23- - echo -e "\e[0Ksection_start:`date +%s`:section_clean\r\e[0KCleaning"
24- # TODO Need signal if Android SDK download slows build (and Docker image needs to be updated),
25- # what Android Plugin task can we add here to install missing Android SDK components (e.g. new Build-Tools)?
26- - ./gradlew clean
27- - echo -e "\e[0Ksection_end:`date +%s`:section_clean\r\e[0K"
28- 29- - echo -e "\e[0Ksection_start:`date +%s`:section_build\r\e[0KBuilding"
30- - ./gradlew build
31- - echo -e "\e[0Ksection_end:`date +%s`:section_build\r\e[0K"
21+ - ./gradlew clean build
3222 artifacts :
3323 when : always
3424 paths :
0 commit comments