-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CircleCI config and use circleci.test lib for test result data.
- Loading branch information
1 parent
a16421a
commit 2549f38
Showing
3 changed files
with
37 additions
and
1 deletion.
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,24 @@ | ||
version: 2.0 | ||
jobs: | ||
build: | ||
docker: | ||
- image: clojure:lein-2.8.1 | ||
working_directory: ~/clojars | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- clojars-{{ checksum "project.clj" }} | ||
- run: lein deps | ||
- save_cache: | ||
paths: | ||
- $HOME/.m2 | ||
- $HOME/.lein | ||
key: clojars-{{ checksum "project.clj" }} | ||
- run: lein do run -m user/migrate, test, uberjar | ||
- store_test_results: | ||
path: target/test-results | ||
- run: mv target/uberjar/clojars-web-*-standalone.jar clojars-uberjar.jar | ||
- store_artifacts: | ||
path: clojars-uberjar.jar | ||
destination: uberjar |
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,8 @@ | ||
(require '[circleci.test.report :refer (clojure-test-reporter)]) | ||
(require '[circleci.test.report.junit :as junit]) | ||
|
||
{:selectors {:all (constantly true) | ||
:default (complement :disabled)} | ||
:test-results-dir (or (System/getenv "CIRCLE_TEST_REPORTS") | ||
"target/test-results") | ||
:reporters [clojure-test-reporter junit/reporter]} |
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