-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try this cache setup * Need different Docker image https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class/53085816#53085816 * another attempt to collect surefire results * Restore cache properly
- Loading branch information
1 parent
45e89c3
commit 0ff6f0f
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
jobs: | ||
build: # runs not using Workflows must have a `build` job as entry point | ||
docker: # run the steps with Docker | ||
- image: circleci/openjdk:10.0.2-13 | ||
steps: # a collection of executable commands | ||
- checkout # check out source code to working directory | ||
- restore_cache: # restore the saved cache after the first run or if `pom.xml` has changed | ||
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/ | ||
key: dockstore-java-{{ checksum "pom.xml" }} | ||
- run: mvn clean install # run the actual tests | ||
- run: # clean the cache | ||
command: | | ||
rm -rf ~/.m2/repository/io/dockstore | ||
rm -rf ~/.m2/repository/.cache/download-maven-plugin directory | ||
- save_cache: # saves the project dependencies | ||
paths: | ||
- ~/.m2 | ||
key: dockstore-java-{{ checksum "pom.xml" }} | ||
- run: | ||
name: Save test results | ||
command: | | ||
mkdir -p ~/junit/ | ||
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \; | ||
when: always | ||
- store_test_results: | ||
path: ~/junit | ||
- store_artifacts: | ||
path: ~/junit | ||
branches: | ||
ignore: | ||
- gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters