From f2c363a13d2ea0d6b4b6a8c09546d79103d038d2 Mon Sep 17 00:00:00 2001 From: Luke VanderHart Date: Fri, 2 Nov 2018 12:53:01 -0400 Subject: [PATCH] add CircleCI configuration --- .circleci/config.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d9122d9 --- /dev/null +++ b/.circleci/config.yml @@ -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