.gitlab-ci.yml 470 Bytes
Newer Older
akwizgran's avatar
akwizgran committed
1
image: registry.gitlab.com/fdroid/ci-images-base:latest
Torsten Grote's avatar
Torsten Grote committed
2 3 4 5 6 7 8

cache:
  paths:
    - .gradle/wrapper
    - .gradle/caches

before_script:
9
  - set -e
Torsten Grote's avatar
Torsten Grote committed
10 11 12 13
  - export GRADLE_USER_HOME=$PWD/.gradle

test:
  script:
14
    - ./gradlew animalSnifferMain animalSnifferTest
Torsten Grote's avatar
Torsten Grote committed
15 16 17 18 19 20
    - ./gradlew test

after_script:
    # this file changes every time but should not be cached
    - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
    - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/