summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: a095f7e703683fa9aa04fab868a7bfd001bb010b (plain)
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
image: gradle:6.1-jdk13

variables:
    GRADLE_OPTS: "-Dorg.gradle.daemon=false"

before_script:
    - export GRADLE_USER_HOME=`pwd`/.gradle

stages:
    - build
    - test

build:
    stage: build
    script:
        - gradle --build-cache assemble
    allow_failure: false
    cache:
        key: "$CI_COMMIT_REF_NAME"
        policy: push
        paths:
            - build
            - .gradle

test:
    stage: test
    script:
        - gradle check
    cache:
        key: "$CI_COMMIT_REF_NAME"
        policy: pull
        paths:
            - build
            - .gradle