-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
83 lines (79 loc) · 1.82 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: 2
jobs:
build-and-test:
docker:
- image: circleci/clojure:lein-2.8.1
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "project.clj" }}
- run:
command: |
lein deps
- save_cache:
key: deps-{{ checksum "project.clj" }}
paths:
- "~/.m2"
# - run:
# command: |
# lein test
lint:
docker:
- image: circleci/clojure:lein-2.8.1
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "project.clj" }}
- run:
command: |
lein deps
- save_cache:
key: deps-{{ checksum "project.clj" }}
paths:
- "~/.m2"
- run:
command: |
lein cljfmt check
deploy:
docker:
- image: circleci/clojure:lein-2.8.1
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "project.clj" }}
- run:
name: deps
command: |
lein deps
- save_cache:
key: deps-{{ checksum "project.clj" }}
paths:
- "~/.m2"
- run:
name: run deploy
command: |
git config credential.helper 'cache --timeout=120'
git config user.email "caioaao@gmail.com"
git config user.name CircleCI
lein release
workflows:
version: 2
build-test-and-deploy:
jobs:
- build-and-test:
filters:
tags:
only: /.*/
- lint:
filters:
tags:
only: /.*/
- deploy:
requires:
- build-and-test
- lint
filters:
tags:
only: /[0-9]+(\.[0-9]+)*(-(alpha|beta)[0-9]*)?/
branches:
ignore: /.*/