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.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 --stacktrace resolveDependencies
  21. - run: ./gradlew --stacktrace jar test client:fatjar;
  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. when: always
  38. path: ~/test-results
  39. - store_artifacts:
  40. when: always
  41. path: ~/test-results/junit
  42. - store_artifacts:
  43. path: plugins/dist-versioned
  44. - store_artifacts:
  45. path: client/build/libs
  46. - store_artifacts:
  47. path: util/build/libs
  48. - store_artifacts:
  49. path: parser/irc/build/libs
  50. - store_artifacts:
  51. path: parser/common/build/libs
  52. - store_artifacts:
  53. path: build/libs/dmdirc-javadoc.jar
  54. - store_artifacts:
  55. when: always
  56. path: client/build/reports/pmd/*
  57. - store_artifacts:
  58. when: always
  59. path: plugins/pmd/*
  60. - store_artifacts:
  61. when: always
  62. path: util/build/reports/pmd/*
  63. - store_artifacts:
  64. when: always
  65. path: parser/build/reports/pmd/*
  66. workflows:
  67. version: 2
  68. workflow:
  69. jobs:
  70. - build