.gitlab-ci.yml 700 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 15
    - ./gradlew --no-daemon animalSnifferMain animalSnifferTest
    - ./gradlew --no-daemon test
Torsten Grote's avatar
Torsten Grote committed
16

17 18
  after_script:
    # these file change every time but should not be cached
Torsten Grote's avatar
Torsten Grote committed
19 20
    - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
    - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/
21 22 23 24 25 26 27 28 29 30

test_reproducible:
  image: briar/reproducer:latest
  script:
    - cd .. && mv briar /opt/briar-reproducer/
    - cd /opt/briar-reproducer
    - ./reproduce.py ${CI_COMMIT_REF_NAME}
  only:
    - tags