2020-03-08 22:17:18 +00:00
|
|
|
version: 2
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
working_directory: ~/honeysql
|
|
|
|
|
docker:
|
2021-07-30 06:09:56 +00:00
|
|
|
- image: circleci/clojure:openjdk-11-tools-deps-1.10.3.933
|
2020-03-08 22:17:18 +00:00
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
- restore_cache:
|
2021-01-31 14:00:27 +00:00
|
|
|
key: honeysql-{{ checksum "deps.edn" }}
|
2021-01-31 13:47:14 +00:00
|
|
|
- run:
|
|
|
|
|
name: Get rid of erroneous git config
|
|
|
|
|
command: rm -rf ~/.gitconfig
|
2020-05-29 19:52:57 +00:00
|
|
|
- run:
|
|
|
|
|
name: Install Node
|
2020-08-13 19:02:52 +00:00
|
|
|
command: sudo apt-get update && sudo apt-get install -y nodejs
|
2020-05-29 19:52:57 +00:00
|
|
|
- run:
|
2020-05-29 19:59:38 +00:00
|
|
|
name: Download Dependencies
|
2021-08-01 02:37:22 +00:00
|
|
|
# 1.9 is the default so we need to ask for 1.10 (1.11 is a snapshot we don't cache):
|
2021-08-13 02:24:24 +00:00
|
|
|
command: clojure -P -M:build:test:cljs:eastwood:readme && clojure -P -M:1.10
|
2020-03-08 22:17:18 +00:00
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
|
|
|
|
- ~/.m2
|
|
|
|
|
- ~/.gitlibs
|
2020-05-29 19:59:38 +00:00
|
|
|
- ~/node_modules
|
2021-01-31 14:00:27 +00:00
|
|
|
key: honeysql-{{ checksum "deps.edn" }}
|
2020-05-29 19:59:38 +00:00
|
|
|
- run:
|
|
|
|
|
name: Run all the tests
|
2021-08-13 02:20:02 +00:00
|
|
|
command: clojure -T:build ci
|