2018-03-08 17:39:32 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2018-04-16 16:50:32 +00:00
|
|
|
test:
|
2018-03-08 17:39:32 +00:00
|
|
|
working_directory: ~/work
|
|
|
|
docker:
|
2020-02-03 12:43:58 +00:00
|
|
|
- image: circleci/clojure:lein-2.9.1-node-browsers
|
2018-03-08 17:39:32 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
2020-04-12 22:32:06 +00:00
|
|
|
keys:
|
|
|
|
- lein-v1-{{ checksum "project.clj" }}
|
|
|
|
- lein-v1
|
2018-03-08 17:39:32 +00:00
|
|
|
- restore_cache:
|
2020-04-12 22:32:06 +00:00
|
|
|
keys:
|
|
|
|
- npm-v1-{{ checksum "package.json" }}
|
|
|
|
- npm-v1
|
2018-03-08 17:39:32 +00:00
|
|
|
- run: sudo npm install -g karma-cli
|
2018-04-16 17:04:35 +00:00
|
|
|
- run: npm install
|
2020-04-12 22:32:06 +00:00
|
|
|
- run: ./run-tests.sh lein
|
2018-03-08 17:39:32 +00:00
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.m2
|
|
|
|
- ~/.lein
|
2018-04-03 07:53:05 +00:00
|
|
|
- ~/.cljs/.aot_cache
|
2020-04-12 22:32:06 +00:00
|
|
|
key: lein-v1-{{ checksum "project.clj" }}
|
2018-03-08 17:39:32 +00:00
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
2020-04-12 22:32:06 +00:00
|
|
|
key: npm-v1-{{ checksum "package.json" }}
|
2020-03-22 13:22:11 +00:00
|
|
|
- store_artifacts:
|
|
|
|
path: coverage
|
|
|
|
- run: bash <(curl -s https://codecov.io/bash)
|
2018-03-08 17:39:32 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
NPM_CONFIG_LOGLEVEL: warn
|
2020-04-12 22:32:06 +00:00
|
|
|
|
|
|
|
test-clj:
|
|
|
|
working_directory: ~/work
|
|
|
|
docker:
|
|
|
|
- image: circleci/clojure:tools-deps-1.9.0.397-node-browsers
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- clj-v1-{{ checksum "deps.edn" }}
|
|
|
|
- clj-v1
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- npm-v1-{{ checksum "package.json" }}
|
|
|
|
- vpm-v1
|
|
|
|
- run: sudo npm install -g karma-cli
|
|
|
|
- run: npm install
|
|
|
|
- run: ./run-tests.sh clj
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.m2
|
|
|
|
- ~/.lein
|
|
|
|
- ~/.cljs/.aot_cache
|
|
|
|
key: clj-v1-{{ checksum "deps.edn" }}
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
key: npm-v1-{{ checksum "package.json" }}
|
|
|
|
- store_artifacts:
|
|
|
|
path: coverage
|
|
|
|
- run: bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
|
|
|
environment:
|
|
|
|
NPM_CONFIG_LOGLEVEL: warn
|
|
|
|
|
2018-04-16 16:50:32 +00:00
|
|
|
update-site:
|
2018-03-08 17:39:32 +00:00
|
|
|
working_directory: ~/work
|
|
|
|
docker:
|
2020-02-03 12:43:58 +00:00
|
|
|
- image: circleci/clojure:lein-2.9.1-node
|
2018-03-08 17:39:32 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- add_ssh_keys
|
2018-04-16 17:04:35 +00:00
|
|
|
- restore_cache:
|
2020-04-12 22:32:06 +00:00
|
|
|
keys:
|
|
|
|
- lein-v1-{{ checksum "project.clj" }}
|
|
|
|
- lein-v1
|
2018-04-16 17:04:35 +00:00
|
|
|
- restore_cache:
|
2020-04-12 22:32:06 +00:00
|
|
|
keys:
|
|
|
|
- npm-v1-{{ checksum "package.json" }}
|
|
|
|
- npm-v1
|
2018-04-16 17:04:35 +00:00
|
|
|
- run: npm install
|
2018-03-08 17:39:32 +00:00
|
|
|
- deploy:
|
|
|
|
command: ./build-example-site.sh
|
2020-04-12 22:32:06 +00:00
|
|
|
|
2018-04-16 16:50:32 +00:00
|
|
|
update-tagged-docs:
|
|
|
|
working_directory: ~/work
|
|
|
|
docker:
|
2020-02-03 12:43:58 +00:00
|
|
|
- image: circleci/clojure:lein-2.9.1
|
2018-04-16 16:50:32 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- add_ssh_keys
|
2018-04-16 17:04:35 +00:00
|
|
|
- restore_cache:
|
2020-04-12 22:32:06 +00:00
|
|
|
keys:
|
|
|
|
- lein-v1-{{ checksum "project.clj" }}
|
|
|
|
- lein-v1
|
2018-04-16 16:50:32 +00:00
|
|
|
- deploy:
|
|
|
|
command: ./build-docs.sh
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
test-and-update-site:
|
|
|
|
jobs:
|
2018-05-17 06:06:54 +00:00
|
|
|
- test:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /v.*/
|
2020-04-12 22:32:06 +00:00
|
|
|
- test-clj:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /v.*/
|
2018-04-16 16:50:32 +00:00
|
|
|
- update-site:
|
2018-04-16 16:57:08 +00:00
|
|
|
requires:
|
|
|
|
- test
|
2020-04-12 22:32:06 +00:00
|
|
|
- test-clj
|
2018-04-16 16:50:32 +00:00
|
|
|
filters:
|
2018-04-16 16:57:08 +00:00
|
|
|
branches:
|
2018-04-16 16:50:32 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- update-tagged-docs:
|
2018-04-16 16:57:08 +00:00
|
|
|
requires:
|
|
|
|
- test
|
2020-04-12 22:32:06 +00:00
|
|
|
- test-clj
|
2018-04-16 16:50:32 +00:00
|
|
|
filters:
|
2018-04-16 17:04:57 +00:00
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
- /.*/
|
2018-04-16 16:50:32 +00:00
|
|
|
tags:
|
2018-04-16 17:04:57 +00:00
|
|
|
only: /v.*/
|