2020-06-04 18:00:09 +00:00
|
|
|
# Clojure CircleCI 2.0 configuration file
|
|
|
|
|
#
|
|
|
|
|
# Check https://circleci.com/docs/2.0/language-clojure/ for more details
|
|
|
|
|
#
|
|
|
|
|
version: 2
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
machine:
|
|
|
|
|
image: ubuntu-1604:202004-01
|
|
|
|
|
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
# Customize the JVM maximum heap limit
|
|
|
|
|
JVM_OPTS: -Xmx3200m
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
|
|
# Download and cache dependencies
|
|
|
|
|
- restore_cache:
|
|
|
|
|
keys:
|
2020-06-06 14:25:18 +00:00
|
|
|
- v1-dependencies-{{ checksum "project.clj" }}
|
2020-06-04 18:00:09 +00:00
|
|
|
# fallback to using the latest cache if no exact match is found
|
|
|
|
|
- v1-dependencies-
|
|
|
|
|
|
2020-08-09 19:38:20 +00:00
|
|
|
- run:
|
|
|
|
|
name: Install Leiningen
|
|
|
|
|
command: wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein && chmod a+x lein && lein --version
|
|
|
|
|
|
2020-06-06 14:25:18 +00:00
|
|
|
- run: lein deps
|
2020-06-04 18:00:09 +00:00
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
2020-08-09 19:38:20 +00:00
|
|
|
- ~/.lein
|
2020-06-04 18:00:09 +00:00
|
|
|
- ~/.m2
|
2020-06-06 14:25:18 +00:00
|
|
|
key: v1-dependencies-{{ checksum "project.clj" }}
|
2020-06-04 18:00:09 +00:00
|
|
|
|
|
|
|
|
# run tests!
|
2020-08-07 18:22:45 +00:00
|
|
|
- run: lein test
|
2020-06-06 14:25:18 +00:00
|
|
|
|
2020-08-09 19:38:20 +00:00
|
|
|
# check style
|
|
|
|
|
- run: lein cljstyle check --report
|
|
|
|
|
|
2020-06-06 12:50:18 +00:00
|
|
|
- store_test_results:
|
|
|
|
|
path: target
|