.gitlab-ci.yml 964 B

123456789101112131415161718192021222324252627282930313233
  1. image: briar/ci-image-android:latest
  2. stages:
  3. - test
  4. - check_reproducibility
  5. test:
  6. stage: test
  7. before_script:
  8. - set -e
  9. - export GRADLE_USER_HOME=$PWD/.gradle
  10. cache:
  11. paths:
  12. - .gradle/wrapper
  13. - .gradle/caches
  14. script:
  15. - ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom animalSnifferMain animalSnifferTest
  16. - ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom check compileOfficialDebugAndroidTestSources compileScreenshotDebugAndroidTestSources
  17. after_script:
  18. # these file change every time but should not be cached
  19. - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
  20. - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/
  21. test_reproducible:
  22. stage: check_reproducibility
  23. script:
  24. - "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"
  25. only:
  26. - tags