testcontainers-clj/.circleci/config.yml

43 lines
1,017 B
YAML
Raw Normal View History

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
2020-06-04 18:05:41 +00:00
- run:
2020-06-06 14:25:18 +00:00
name: Install Leiningen
2020-06-06 14:31:27 +00:00
command: wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein && chmod a+x lein && ./lein
2020-06-04 18:05:41 +00:00
2020-06-04 18:00:09 +00:00
# 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-06-06 14:25:18 +00:00
- run: lein deps
2020-06-04 18:00:09 +00:00
- save_cache:
paths:
- ~/.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-06-06 14:25:18 +00:00
- run: lein bat-test cloverage
2020-06-06 12:50:18 +00:00
- store_test_results:
path: target