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.

config.yml 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ---
  2. version: 2
  3. jobs:
  4. build:
  5. environment:
  6. TERM: dumb
  7. _JAVA_OPTIONS: "-Xmx3g"
  8. GRADLE_OPTS: "-Xmx2g -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2"
  9. docker: # run the steps with Docker
  10. - image: circleci/openjdk:8-jdk
  11. steps:
  12. - run: git clone https://github.com/DMDirc/Meta.git .
  13. - run: git submodule update --init --remote
  14. - run: |
  15. cd plugins
  16. git remote set-url origin https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git:
  17. if [ -n "$CIRCLE_PR_NUMBER" ]; then
  18. git fetch origin pull/$CIRCLE_PR_NUMBER/head:circleci;
  19. else
  20. git fetch origin $CIRCLE_BRANCH:circleci;
  21. fi
  22. - run: cd plugins && git fetch --tags
  23. - run: cd plugins && git checkout circleci
  24. - run: ./gradlew dependencies
  25. - run: ./gradlew --stacktrace plugins:jars plugins:tests plugins:coveralls
  26. - save_cache:
  27. paths:
  28. - ~/.gradle/wrapper
  29. key: v1-gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
  30. - save_cache:
  31. paths:
  32. - ~/.gradle/caches
  33. key: v1-gradle-cache-{{ checksum "build.gradle" }}
  34. - run:
  35. name: Prepare test output
  36. command: |
  37. mkdir -p ~/test-results/junit/
  38. find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
  39. - store_test_results:
  40. path: ~/test-results
  41. - store_artifacts:
  42. path: ~/test-results/junit
  43. - store_artifacts:
  44. path: plugins/dist
  45. workflows:
  46. version: 2
  47. workflow:
  48. jobs:
  49. - build