Skip to content
Snippets Groups Projects
.gitlab-ci.yml 700 B
Newer Older
image: registry.gitlab.com/fdroid/ci-images-base:latest
Torsten Grote's avatar
Torsten Grote committed

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

before_script:
Torsten Grote's avatar
Torsten Grote committed
  - export GRADLE_USER_HOME=$PWD/.gradle

test:
  script:
    - ./gradlew --no-daemon animalSnifferMain animalSnifferTest
    - ./gradlew --no-daemon test
Torsten Grote's avatar
Torsten Grote committed

  after_script:
    # these file change every time but should not be cached
Torsten Grote's avatar
Torsten Grote committed
    - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
    - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/

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