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: [ . ]
|
|
|
|
|
|
|
|
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' }
|
2018-08-30 00:51:11 +00:00
|
|
|
- run: sudo apt-get update && sudo apt-get install build-essential zlib1g-dev
|
|
|
|
- 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: /.*/ } }
|
|
|
|
|
|
|
|
- trial-publish:
|
|
|
|
requires: [ compile ]
|
|
|
|
|
|
|
|
- publish:
|
|
|
|
requires: [ check ]
|
|
|
|
filters: { tags: { only: /.*/ }, branches: { only: develop } }
|
|
|
|
|