-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
55 lines (50 loc) · 1.48 KB
/
config.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
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
test:
docker:
- image: clojure:openjdk-11-tools-deps-1.10.3.1040-buster
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: "Test"
command: "clojure -T:build test"
- store_test_results:
path: test-results
deploy:
docker:
- image: clojure:openjdk-11-tools-deps-1.10.3.1040-buster
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: "Build jar"
command: "clojure -T:build build"
- run:
name: "Tag and deploy to clojars"
command: "clojure -T:build deploy"
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
build-workflow:
jobs:
- test:
filters: # required since `deploy` has tag filters AND requires `test`
tags:
only: /.*/
- deploy:
context:
- clojars-publisher
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
requires:
- test