version: 2 # use CircleCI 2.0 jobs: # basic units of work in a run build: # runs not using Workflows must have a `build` job as entry point working_directory: ~/next-jdbc docker: # run the steps with Docker - image: circleci/clojure:openjdk-11-tools-deps-1.10.0.442 # environment: # environment variables for primary container # JVM_OPTS: -Xmx3200m # limit the maximum heap size to prevent out of memory errors steps: # commands that comprise the `build` job - checkout # check out source code to working directory - restore_cache: # restores saved cache if checksum hasn't changed since the last run key: next-jdbc-{{ checksum "deps.edn" }} - run: clojure -A:test:runner-ci -Spath - save_cache: # generate and store cache in the .m2 directory using a key template paths: - ~/.m2 - ~/.gitlibs key: next-jdbc-{{ checksum "deps.edn" }} - run: clojure -A:test:runner # - store_artifacts: # Upload test summary for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ # path: target/uberjar/cci-demo-clojure.jar # destination: uberjar # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples