-
Notifications
You must be signed in to change notification settings - Fork 6
/
circle.yml
48 lines (48 loc) · 1.15 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
version: 2
jobs:
test:
working_directory: ~/work
docker:
- image: circleci/clojure:boot-2.7.2-browsers
steps:
- checkout
- restore_cache:
keys:
- v1-{{ checksum "boot.properties" }}-{{ checksum "build.boot" }}
- v1-
- run: boot test
- save_cache:
paths:
- ~/.m2
- ~/.boot/cache/lib
- ~/.boot/cache/bin
key: v1-{{ checksum "boot.properties" }}-{{ checksum "build.boot" }}
deploy:
working_directory: ~/work
docker:
- image: circleci/clojure:boot-2.7.2
steps:
- checkout
- add_ssh_keys
- restore_cache:
key: v1-{{ checksum "boot.properties" }}-{{ checksum "build.boot" }}
- run: git clone $DOTFILES ~/dotfiles && . ~/dotfiles/init.sh
- deploy:
command: boot deploy
workflows:
version: 2
test-and-deploy:
jobs:
- test:
filters:
tags:
only: /v.*/
- deploy:
requires:
- test
filters:
branches:
only:
- master
tags:
only: /v.*/