add CircleCI configuration

This commit is contained in:
Luke VanderHart 2018-11-02 12:53:01 -04:00
parent 5ef0a055e2
commit f2c363a13d
1 changed files with 32 additions and 0 deletions

32
.circleci/config.yml Normal file
View File

@ -0,0 +1,32 @@
# Clojure CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-clojure/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/clojure:tools-deps
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "deps.edn" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: clojure -Atest -Srepro -Sdescribe
- save_cache:
paths:
- ~/.m2
- ~/.gitlibs
key: v1-dependencies-{{ checksum "deps.edn" }}
# run tests!
- run: clojure -Atest:run-tests