diff --git a/.circleci/config.yml b/.circleci/config.yml index f4606a4..35b8a4e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,21 +1,30 @@ version: 2.1 -jobs: - build: - docker: - - image: circleci/clojure:lein-2.8.1 - working_directory: ~/repo - environment: - LEIN_ROOT: "true" - JVM_OPTS: -Xmx3200m - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "project.clj" }} - # fallback to using the latest cache if no exact match is found - - v1-dependencies- - - run: lein test - - save_cache: - paths: - - ~/.m2 - key: v1-dependencies-{{ checksum "project.clj" }} +orbs: + clojure-leiningen: + executors: + leiningen: + docker: + - image: circleci/clojure:lein-2.8.1 + environment: + LEIN_ROOT: "true" + JVM_OPTS: -Xmx3200m + working_directory: ~/repo + jobs: + lein-test: + executor: leiningen + steps: + - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "project.clj" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + - run: lein test + - save_cache: + paths: + - ~/.m2 + key: v1-dependencies-{{ checksum "project.clj" }} +workflows: + test: + jobs: + - clojure-leiningen/lein-test