Skip to content

Commit

Permalink
Merge pull request #42 from skilbjo/codecov-orb
Browse files Browse the repository at this point in the history
use codecov orb
  • Loading branch information
skilbjo authored Nov 4, 2019
2 parents 74a219f + a11ee14 commit 438f00e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
version: 2
version: 2.1

orbs:
codecov: codecov/codecov@1.0.5

jobs:
build_and_test:
build-and-test:
working_directory: ~/aeon
docker:
- image: circleci/clojure:openjdk-8-lein-2.9.1
Expand All @@ -12,21 +16,23 @@ jobs:
- checkout
- run: git clone https://github.com/skilbjo/markets-etl.git ~/markets-etl
- restore_cache:
key: << checksum "project.clj" >>
key: \<< checksum "project.clj" \>> # << and >> must be escaped: https://circleci.com/docs/2.0/build-processing/#limitations
- run: sudo apt install openjdk-8-jdk # avoids: circleci@8fccf39191f0:~/aeon$ lein /usr/local/bin/lein: line 122: java: command not found
- run: lein do deps, cloverage --codecov
- codecov/upload:
file: target/coverage/codecov.json
- save_cache:
paths:
- ~/.m2
- ~/.lein
key: << checksum "project.clj" >>
key: \<< checksum "project.clj" \>>
- setup_remote_docker
- run: (set -e; bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json & 2>/dev/null; lein test & 2>/dev/null; lein cljfmt check & 2>/dev/null) && wait && deploy/bin/publish-image
- run: (set -e; lein test & 2>/dev/null; lein cljfmt check & 2>/dev/null) && wait && deploy/bin/publish-image
- store_artifacts:
path: target/uberjar/app.jar

workflows:
version: 2
build_and_test:
commit:
jobs:
- build_and_test
- build-and-test

0 comments on commit 438f00e

Please sign in to comment.