Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to CircleCI 2.0 #82

Merged
merged 1 commit into from
Jun 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# This file was generated by the excavator check 'excavator/manage-circleci' as specified in .circleci/template.sh.
# To request a modification to the general template, file an issue on Excavator.
# To manually manage the CircleCI configuration for this project, remove the .circleci/template.sh file.

version: 2
jobs:
build:
docker:
- image: circleci/openjdk:8u171-jdk-node-browsers
resource_class: xlarge
environment:
GRADLE_OPTS: -Dorg.gradle.console=plain -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false

steps:
- checkout
- restore_cache:
key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- restore_cache:
key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}

- run: ./gradlew --parallel resolveConfigurations

- save_cache:
key: gradle-wrapper-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
paths:
- ~/.gradle/wrapper
- save_cache:
key: gradle-cache-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}
paths:
- ~/.gradle/caches

- run: ./gradlew --parallel --continue build

- run:
command: |
mkdir -p ~/junit
find . -type f -regex ".*/build/.*TEST.*xml" -exec cp --parents {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit

- run:
command: |
mkdir -p ~/reports
find . -type f -regex ".*/build/reports/.*" -exec cp --parents {} ~/reports/ \;
when: always
- store_test_results:
path: ~/reports
- store_artifacts:
path: ~/reports

- deploy:
command: |
# publishing snapshots to bintray does not work, so we only publish from tag builds (not develop)
if [[ "${CIRCLE_TAG}" =~ [0-9]+(\.[0-9]+)+(-[a-zA-Z]+[0-9]*)* ]]; then
./gradlew --stacktrace --continue publish
else
./gradlew --parallel --continue publishToMavenLocal
mkdir -p ~/poms
find . -name 'pom-default.xml' -exec cp --parents {} ~/poms \;
fi

- store_artifacts:
path: ~/poms

workflows:
version: 2
build:
jobs:
- build:
filters:
# CircleCI2 will ignore tags without this. https://circleci.com/docs/2.0/workflows/#git-tag-job-execution
tags:
only: /.*/

4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ allprojects {
}
}
tasks.check.dependsOn(javadoc)

if (System.env.CIRCLE_TEST_REPORTS) {
test.reports.junitXml.destination = new File(System.env.CIRCLE_TEST_REPORTS, it.getName())
}
}

dependencies {
Expand Down
38 changes: 0 additions & 38 deletions circle.yml

This file was deleted.