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
policy: push
- build
- .gradle
#test:
# stage: test
# script: gradle check
# cache:
# key: "$CI_PROJECT_ID"
# policy: pull
# paths:
# - build
# - .gradle