You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2KB

  1. language: android
  2. dist: trusty
  3. android:
  4. components:
  5. - android-19
  6. jdk:
  7. - oraclejdk8
  8. - openjdk9
  9. - openjdk11
  10. before_cache:
  11. - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
  12. - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
  13. cache:
  14. directories:
  15. - $HOME/.gradle/caches/
  16. - $HOME/.android/build-cache
  17. - $HOME/.m2
  18. before_install:
  19. - export GRADLE_VERSION=5.5.1
  20. - wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-all.zip
  21. - unzip -q gradle-${GRADLE_VERSION}-all.zip
  22. - export PATH="$(pwd)/gradle-${GRADLE_VERSION}/bin:$PATH"
  23. addons:
  24. apt:
  25. update: true
  26. packages:
  27. - graphviz
  28. install: gradle assemble --stacktrace
  29. # Run the test suite and also install the artifacts in the local maven
  30. # archive to additionaly test if artifact creation is
  31. # functional. Which hasn't always be the case in the past, see
  32. # 90cbcaebc7a89f4f771f733a33ac9f389df85be2
  33. # Also run javadocAll to ensure it works.
  34. script: gradle check publishToMavenLocal javadocAll --stacktrace
  35. after_success:
  36. - JAVAC_VERSION=$((javac -version) 2>&1)
  37. # Only run jacocoRootReport in the Java 8 build
  38. - if [[ "$JAVAC_VERSION" = javac\ 1.8.* ]]; then gradle jacocoRootReport coveralls; fi