Skip to content
Snippets Groups Projects
.gitlab-ci.yml 722 B
Newer Older
image: briar/ci-image-android:latest
Torsten Grote's avatar
Torsten Grote committed

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

  cache:
    paths:
      - .gradle/wrapper
      - .gradle/caches
Torsten Grote's avatar
Torsten Grote committed

  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:
  script:
    - "curl -X POST -F token=${RELEASE_CHECK_TOKEN} -F ref=master -F variables[RELEASE_TAG]=${CI_COMMIT_REF_NAME} https://code.briarproject.org/api/v4/projects/61/trigger/pipeline"