Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8f83552

Browse files
debt CI: update note about using Gradle daemon, drop internal task
1 parent 0c9eb55 commit 8f83552

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

‎.gitlab-ci.yml‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
image: objectboxio/buildenv-android:2023年08月29日
33

44
variables:
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /