mirror of https://github.com/status-im/reagent.git
Use cache and install npm deps on circle update-sit job
This commit is contained in:
parent
e729a53789
commit
63b7430338
12
circle.yml
12
circle.yml
|
@ -10,9 +10,8 @@ jobs:
|
||||||
key: reagent-{{ checksum "project.clj" }}
|
key: reagent-{{ checksum "project.clj" }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: reagent-npm-{{ checksum "package.json" }}
|
key: reagent-npm-{{ checksum "package.json" }}
|
||||||
- run: lein deps
|
|
||||||
- run: sudo npm install -g karma-cli
|
- run: sudo npm install -g karma-cli
|
||||||
- run: ./prepare-tests.sh
|
- run: npm install
|
||||||
- run: ./run-tests.sh
|
- run: ./run-tests.sh
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
|
@ -30,10 +29,15 @@ jobs:
|
||||||
update-site:
|
update-site:
|
||||||
working_directory: ~/work
|
working_directory: ~/work
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/clojure:lein-2.8.1
|
- image: circleci/clojure:lein-2.8.1-node
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- add_ssh_keys
|
- add_ssh_keys
|
||||||
|
- restore_cache:
|
||||||
|
key: reagent-{{ checksum "project.clj" }}
|
||||||
|
- restore_cache:
|
||||||
|
key: reagent-npm-{{ checksum "package.json" }}
|
||||||
|
- run: npm install
|
||||||
- deploy:
|
- deploy:
|
||||||
command: ./build-example-site.sh
|
command: ./build-example-site.sh
|
||||||
update-tagged-docs:
|
update-tagged-docs:
|
||||||
|
@ -43,6 +47,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- add_ssh_keys
|
- add_ssh_keys
|
||||||
|
- restore_cache:
|
||||||
|
key: reagent-{{ checksum "project.clj" }}
|
||||||
- deploy:
|
- deploy:
|
||||||
command: ./build-docs.sh
|
command: ./build-docs.sh
|
||||||
workflows:
|
workflows:
|
||||||
|
|
Loading…
Reference in New Issue