31 lines
450 B
YAML
31 lines
450 B
YAML
image: gradle:alpine
|
|
|
|
cache:
|
|
key: "$CI_PROJECT_ID"
|
|
paths:
|
|
- .gradle/
|
|
|
|
variables:
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
#before_script:
|
|
build:
|
|
stage: build
|
|
script: gradle --build-cache assemble
|
|
cache:
|
|
key: "$CI_PROJECT_ID"
|
|
policy: push
|
|
paths:
|
|
- build
|
|
- .gradle
|
|
|
|
|
|
#test:
|
|
# stage: test
|
|
# script: gradle check
|
|
# cache:
|
|
# key: "$CI_PROJECT_ID"
|
|
# policy: pull
|
|
# paths:
|
|
# - build
|
|
# - .gradle |