forked from reagent-project/reagent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
77 lines (76 loc) · 1.85 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
65
66
67
68
69
70
71
72
73
74
75
76
77
version: 2
jobs:
test:
working_directory: ~/work
docker:
- image: circleci/clojure:lein-2.9.1-node-browsers
steps:
- checkout
- restore_cache:
key: reagent-{{ checksum "project.clj" }}
- restore_cache:
key: reagent-npm-{{ checksum "package.json" }}
- run: sudo npm install -g karma-cli
- run: npm install
- run: ./run-tests.sh
- save_cache:
paths:
- ~/.m2
- ~/.lein
- ~/.cljs/.aot_cache
key: reagent-{{ checksum "project.clj" }}
- save_cache:
paths:
- node_modules
key: reagent-npm-{{ checksum "package.json" }}
environment:
NPM_CONFIG_LOGLEVEL: warn
update-site:
working_directory: ~/work
docker:
- image: circleci/clojure:lein-2.9.1-node
steps:
- checkout
- add_ssh_keys
- restore_cache:
key: reagent-{{ checksum "project.clj" }}
- restore_cache:
key: reagent-npm-{{ checksum "package.json" }}
- run: npm install
- deploy:
command: ./build-example-site.sh
update-tagged-docs:
working_directory: ~/work
docker:
- image: circleci/clojure:lein-2.9.1
steps:
- checkout
- add_ssh_keys
- restore_cache:
key: reagent-{{ checksum "project.clj" }}
- deploy:
command: ./build-docs.sh
workflows:
version: 2
test-and-update-site:
jobs:
- test:
filters:
tags:
only: /v.*/
- update-site:
requires:
- test
filters:
branches:
only:
- master
- update-tagged-docs:
requires:
- test
filters:
branches:
ignore:
- /.*/
tags:
only: /v.*/