2018-08-30 00:51:11 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
compile:
|
|
|
|
docker: [{ image: 'circleci/openjdk:8-node' }]
|
|
|
|
resource_class: medium+
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache: { key: 'gradle-wrapper-v2-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}' }
|
|
|
|
- restore_cache: { key: 'gradle-cache-v2-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}' }
|
|
|
|
- run: ./gradlew --profile --parallel --stacktrace resolveConfigurations
|
|
|
|
- save_cache:
|
|
|
|
key: 'gradle-wrapper-v2-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}'
|
|
|
|
paths: [ ~/.gradle/wrapper ]
|
|
|
|
- save_cache:
|
|
|
|
key: 'gradle-cache-v2-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}'
|
|
|
|
paths: [ ~/.gradle/caches ]
|
|
|
|
- run: ./gradlew --profile --parallel --stacktrace classes testClasses
|
|
|
|
- persist_to_workspace:
|
|
|
|
root: .
|
|
|
|
paths: [ . ]
|
|
|
|
|
2020-05-18 16:16:39 +00:00
|
|
|
compile-jdk11:
|
|
|
|
docker: [{ image: 'circleci/openjdk:11-node' }]
|
|
|
|
resource_class: medium+
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache: { key: 'gradle-wrapper-v2-jdk11-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}' }
|
|
|
|
- restore_cache: { key: 'gradle-cache-v2-jdk11-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}' }
|
|
|
|
- run: ./gradlew --profile --parallel --stacktrace resolveConfigurations
|
|
|
|
- save_cache:
|
|
|
|
key: 'gradle-wrapper-v2-jdk11-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}'
|
|
|
|
paths: [ ~/.gradle/wrapper ]
|
|
|
|
- save_cache:
|
|
|
|
key: 'gradle-cache-v2-jdk11-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}'
|
|
|
|
paths: [ ~/.gradle/caches ]
|
|
|
|
- run: ./gradlew --profile --parallel --stacktrace classes testClasses
|
|
|
|
|
2018-08-30 00:51:11 +00:00
|
|
|
check:
|
|
|
|
docker: [{ image: 'circleci/openjdk:8-node' }]
|
2018-09-06 21:26:31 +00:00
|
|
|
resource_class: medium+
|
2018-08-30 00:51:11 +00:00
|
|
|
steps:
|
|
|
|
- attach_workspace: { at: . }
|
|
|
|
- restore_cache: { key: 'gradle-wrapper-v2-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}' }
|
|
|
|
- restore_cache: { key: 'gradle-cache-v2-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}' }
|
2018-09-06 21:26:31 +00:00
|
|
|
- restore_cache: { key: 'graal-cache' }
|
2020-05-18 16:16:39 +00:00
|
|
|
- run: (sudo apt-get update || sudo apt-get update) && sudo apt-get install build-essential zlib1g-dev
|
|
|
|
- run: ./gradlew --profile --parallel --stacktrace --continue check
|
|
|
|
- save_cache:
|
|
|
|
key: 'graal-cache'
|
|
|
|
paths: [ ~/.gradle/caches/com.palantir.graal ]
|
|
|
|
- store_test_results: { path: build/test-results }
|
|
|
|
- store_artifacts: { path: build/reports/tests }
|
|
|
|
|
|
|
|
check-jdk11:
|
|
|
|
docker: [{ image: 'circleci/openjdk:11-node' }]
|
|
|
|
resource_class: medium+
|
|
|
|
steps:
|
2020-05-19 17:20:17 +00:00
|
|
|
- checkout
|
2020-05-18 16:16:39 +00:00
|
|
|
- restore_cache: { key: 'gradle-wrapper-v2-jdk11-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}' }
|
|
|
|
- restore_cache: { key: 'gradle-cache-v2-jdk11-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}' }
|
|
|
|
- restore_cache: { key: 'graal-cache' }
|
|
|
|
- run: (sudo apt-get update || sudo apt-get update) && sudo apt-get install build-essential zlib1g-dev
|
2018-08-30 00:51:11 +00:00
|
|
|
- run: ./gradlew --profile --parallel --stacktrace --continue check
|
2018-09-06 21:26:31 +00:00
|
|
|
- save_cache:
|
|
|
|
key: 'graal-cache'
|
|
|
|
paths: [ ~/.gradle/caches/com.palantir.graal ]
|
2018-09-05 17:42:14 +00:00
|
|
|
- store_test_results: { path: build/test-results }
|
|
|
|
- store_artifacts: { path: build/reports/tests }
|
2018-08-30 00:51:11 +00:00
|
|
|
|
|
|
|
trial-publish:
|
|
|
|
docker: [{ image: 'circleci/openjdk:8-node' }]
|
|
|
|
steps:
|
|
|
|
- attach_workspace: { at: . }
|
|
|
|
- restore_cache: { key: 'gradle-wrapper-v2-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}' }
|
|
|
|
- restore_cache: { key: 'gradle-cache-v2-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}' }
|
|
|
|
- run: ./gradlew --profile --stacktrace publishToMavenLocal
|
|
|
|
|
|
|
|
publish:
|
|
|
|
docker: [{ image: 'circleci/openjdk:8-node' }]
|
|
|
|
steps:
|
|
|
|
- attach_workspace: { at: . }
|
|
|
|
- restore_cache: { key: 'gradle-wrapper-v2-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}' }
|
|
|
|
- restore_cache: { key: 'gradle-cache-v2-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}' }
|
|
|
|
- deploy:
|
|
|
|
command: ./gradlew --profile --parallel --stacktrace --continue publish
|
2018-08-30 01:55:52 +00:00
|
|
|
- deploy:
|
2019-06-07 17:15:59 +00:00
|
|
|
command: ./gradlew --profile --parallel --stacktrace -Pgradle.publish.key=$GRADLE_KEY -Pgradle.publish.secret=$GRADLE_SECRET publishPlugins
|
2018-08-30 00:51:11 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
|
|
|
- compile:
|
|
|
|
filters: { tags: { only: /.*/ } }
|
|
|
|
|
|
|
|
- check:
|
|
|
|
requires: [ compile ]
|
|
|
|
filters: { tags: { only: /.*/ } }
|
|
|
|
|
2020-05-18 16:16:39 +00:00
|
|
|
- compile-jdk11:
|
|
|
|
filters: { tags: { only: /.*/ } }
|
|
|
|
|
|
|
|
- check-jdk11:
|
|
|
|
requires: [ compile-jdk11 ]
|
|
|
|
filters: { tags: { only: /.*/ } }
|
|
|
|
|
2018-08-30 00:51:11 +00:00
|
|
|
- trial-publish:
|
|
|
|
requires: [ compile ]
|
|
|
|
|
|
|
|
- publish:
|
2020-05-18 16:16:39 +00:00
|
|
|
requires: [ check, check-jdk11 ]
|
2018-08-30 00:51:11 +00:00
|
|
|
filters: { tags: { only: /.*/ }, branches: { only: develop } }
|
|
|
|
|