forked from circleci/bond
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
64 lines (62 loc) · 1.63 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: 2
jobs:
test-clj:
docker:
- image: clojure:lein-2.7.1
steps:
- checkout
- restore_cache:
keys:
- clj-jars-v2-{{ checksum "project.clj" }}
- clj-jars-v2-
- run:
name: Download dependencies
command: lein deps
- run:
name: Run the tests
command: lein trampoline test
- run:
name: Code Coverage
command: lein trampoline cloverage --codecov
- run:
name: Upload Coverage
command: bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
when: always
- save_cache:
key: clj-jars-v2-{{ checksum "project.clj" }}
paths:
- ~/.m2
- store_artifacts:
path: target/coverage
test-cljs:
docker:
- image: clojure:lein-2.7.1
steps:
- checkout
- restore_cache:
keys:
- cljs-jars-v2-{{ checksum "project.clj" }}-{{ checksum "package.json" }}
- cljs-jars-v2-
- run:
name: Download dependencies
command: lein deps
- run:
name: Install phantomjs
command: |
curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get install -y nodejs
npm install
- run:
name: Run the tests
command: lein cljsbuild test
- save_cache:
key: cljs-jars-v2-{{ checksum "project.clj" }}-{{ checksum "package.json" }}
paths:
- ~/.m2
- ~/node_modules
workflows:
version: 2
run_all_tests:
jobs:
- test-clj
- test-cljs