.gitlab-ci.yml 798 Bytes
Newer Older
1
image: briar/ci-image-android:latest
Torsten Grote's avatar
Torsten Grote committed
2

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

8 9 10 11
  cache:
    paths:
      - .gradle/wrapper
      - .gradle/caches
Torsten Grote's avatar
Torsten Grote committed
12 13

  script:
akwizgran's avatar
akwizgran committed
14 15
    - ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom animalSnifferMain animalSnifferTest
    - ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom 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
test_reproducible:
  script:
25
    - "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"
26 27
  only:
    - tags