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 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. - checkout
  13. - restore_cache:
  14. key: v1-gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
  15. - restore_cache:
  16. key: v1-gradle-cache-{{ checksum "build.gradle" }}
  17. - run: if [ -e .git/shallow ]; then git fetch --unshallow; fi
  18. - run: git fetch --tags
  19. - run: git submodule update --init --remote
  20. - run: ./gradlew dependencies
  21. - run: ./gradlew test jacocoTestReport coveralls
  22. - save_cache:
  23. paths:
  24. - ~/.gradle/wrapper
  25. key: v1-gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
  26. - save_cache:
  27. paths:
  28. - ~/.gradle/caches
  29. key: v1-gradle-cache-{{ checksum "build.gradle" }}
  30. - run:
  31. name: Prepare test output
  32. when: always
  33. command: |
  34. mkdir -p ~/test-results/junit/
  35. find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
  36. - store_test_results:
  37. path: ~/test-results
  38. when: always
  39. - store_artifacts:
  40. path: ~/test-results/junit
  41. when: always
  42. - store_artifacts:
  43. path: irc/build/libs
  44. - store_artifacts:
  45. path: common/build/libs
  46. - store_artifacts:
  47. path: build/reports/pmd/*
  48. when: always
  49. - persist_to_workspace:
  50. root: .
  51. paths:
  52. - .
  53. publishSnapshot:
  54. environment:
  55. TERM: dumb
  56. _JAVA_OPTIONS: "-Xmx3g"
  57. GRADLE_OPTS: "-Xmx2g -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2"
  58. docker:
  59. - image: circleci/openjdk:8-jdk
  60. steps:
  61. - attach_workspace:
  62. at: .
  63. - run: ./gradlew publishSnapshot
  64. workflows:
  65. version: 2
  66. build_and_publish:
  67. jobs:
  68. - build
  69. - publishSnapshot:
  70. filters:
  71. branches:
  72. only: master
  73. requires:
  74. - build