testcontainers-clj/.circleci/config.yml

63 lines
1.5 KiB
YAML
Raw Normal View History

2020-08-07 06:14:19 +00:00
# Clojure CircleCI 2.1 configuration file
2020-06-04 18:00:09 +00:00
#
2020-08-07 06:14:19 +00:00
# Check https://circleci.com/docs/2.0/language-ubuntu/ for more details
2020-06-04 18:00:09 +00:00
#
2020-08-07 06:14:19 +00:00
version: 2.1
executors:
ubuntu:
2020-06-04 18:00:09 +00:00
machine:
image: ubuntu-1604:202004-01
working_directory: ~/repo
2020-08-07 06:14:19 +00:00
jobs:
build:
executor: ubuntu
2020-06-04 18:00:09 +00:00
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
2020-08-07 06:14:19 +00:00
style:
executor: ubuntu
steps:
- checkout
- run:
name: Install cljstyle
environment:
CLJSTYLE_VERSION: 0.13.0
command: |
wget https://github.com/greglook/cljstyle/releases/download/${CLJSTYLE_VERSION}/cljstyle_${CLJSTYLE_VERSION}_linux.tar.gz
tar -xzf cljstyle_${CLJSTYLE_VERSION}_linux.tar.gz
- run:
name: Check style
command: "./cljstyle check --report"