mirror of
https://github.com/status-im/reagent.git
synced 2025-01-13 05:14:45 +00:00
Use circleci v2
This commit is contained in:
parent
a2f445eb99
commit
7b121e8a8e
57
circle.yml
57
circle.yml
@ -1,21 +1,38 @@
|
|||||||
machine:
|
version: 2
|
||||||
node:
|
jobs:
|
||||||
version: v8.2.0
|
build:
|
||||||
|
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: lein deps
|
||||||
|
- run: sudo npm install -g karma-cli
|
||||||
|
- run: ./prepare-tests.sh
|
||||||
|
- run: ./run-tests.sh
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- ~/.m2
|
||||||
|
- ~/.lein
|
||||||
|
key: reagent-{{ checksum "project.clj" }}
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
key: reagent-npm-{{ checksum "package.json" }}
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
JVM_OPTS: "-Xms512m -Xmx1024m"
|
NPM_CONFIG_LOGLEVEL: warn
|
||||||
dependencies:
|
deploy_master:
|
||||||
override:
|
working_directory: ~/work
|
||||||
- lein deps
|
docker:
|
||||||
- npm install -g karma-cli
|
- image: circleci/clojure:lein-2.7.2
|
||||||
- ./prepare-tests.sh
|
steps:
|
||||||
cache_directories:
|
- checkout
|
||||||
- test-environments/browser-node/node_modules
|
- add_ssh_keys
|
||||||
- test-environments/browser-node-react-16/node_modules
|
- deploy:
|
||||||
test:
|
command: ./build-example-site.sh
|
||||||
override:
|
|
||||||
- ./run-tests.sh
|
|
||||||
deployment:
|
|
||||||
master:
|
|
||||||
branch: master
|
|
||||||
commands:
|
|
||||||
- ./build-example-site.sh
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user