-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy path.gitlab-ci.yml
43 lines (39 loc) · 1.3 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Default image for linux builds
image: objectboxio/buildenv-android:2023-08-29
variables:
# Disable the Gradle daemon. Gradle may run in a Docker container with a shared
# Docker volume containing GRADLE_USER_HOME. If the container is stopped after a job
# Gradle daemons may get killed, preventing proper clean-up of lock files in GRADLE_USER_HOME.
# Use low priority processes to avoid Gradle builds consuming all build machine resources.
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.priority=low"
stages:
- test
build-and-test:
stage: test
tags: [ docker, x64 ]
before_script:
# Print Gradle and JVM version info
- ./gradlew -version
script:
- ./gradlew clean build
artifacts:
when: always
paths:
- "**/build/reports/lint-results-debug.html"
reports:
junit: "**/build/test-results/**/TEST-*.xml"
run-cli-app:
stage: test
tags: [ docker, x64 ]
needs: ["build-and-test"]
before_script:
# "|| true" for an OK exit code if path not found
- rm -r java-main/objectbox-notes-db || true
- rm -r kotlin-main/objectbox-notes-db || true
script:
- ./gradlew java-main:run
# Run again with existing database.
- ./gradlew java-main:run
- ./gradlew kotlin-main:run
# Run again with existing database.
- ./gradlew kotlin-main:run