reagent/circle.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

2018-03-08 17:39:32 +00:00
version: 2
jobs:
test:
2018-03-08 17:39:32 +00:00
working_directory: ~/work
docker:
- image: circleci/clojure:lein-2.8.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
2018-03-08 17:39:32 +00:00
- run: ./run-tests.sh
- save_cache:
paths:
- ~/.m2
- ~/.lein
- ~/.cljs/.aot_cache
2018-03-08 17:39:32 +00:00
key: reagent-{{ checksum "project.clj" }}
- save_cache:
paths:
- node_modules
key: reagent-npm-{{ checksum "package.json" }}
environment:
NPM_CONFIG_LOGLEVEL: warn
update-site:
2018-03-08 17:39:32 +00:00
working_directory: ~/work
docker:
- image: circleci/clojure:lein-2.8.1-node
2018-03-08 17:39:32 +00:00
steps:
- checkout
- add_ssh_keys
- restore_cache:
key: reagent-{{ checksum "project.clj" }}
- restore_cache:
key: reagent-npm-{{ checksum "package.json" }}
- run: npm install
2018-03-08 17:39:32 +00:00
- deploy:
command: ./build-example-site.sh
update-tagged-docs:
working_directory: ~/work
docker:
- image: circleci/clojure:lein-2.8.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:
2018-04-16 16:57:08 +00:00
requires:
- test
filters:
2018-04-16 16:57:08 +00:00
branches:
only:
- master
- update-tagged-docs:
2018-04-16 16:57:08 +00:00
requires:
- test
filters:
2018-04-16 17:04:57 +00:00
branches:
ignore:
- /.*/
tags:
2018-04-16 17:04:57 +00:00
only: /v.*/