Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 12 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,22 @@ version: 2
jobs:
build:
docker:
- image: circleci/clojure:tools-deps

working_directory: ~/repo

environment:
LEIN_ROOT: "true"
JVM_OPTS: -Xmx3200m

- image: circleci/clojure:tools-deps-1.10.0.442-node
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "deps.edn" }}

- run: clojure -R:test -e ""

- 'clj-v1-{{ checksum "deps.edn" }}-{{ checksum "package-lock.json" }}'
- 'clj-v1'
- run: npm ci
- run: mkdir -p test-results
- run: bin/kaocha --plugin kaocha.plugin/junit-xml --junit-xml-file test-results/kaocha/results.xml
- store_test_results:
path: test-results
- save_cache:
key: 'clj-v1-{{checksum "deps.edn"}}-{{ checksum "package-lock.json" }}'
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "deps.edn" }}

- run: clojure -A:test
- ~/.cljs/.aot_cache
- ~/node_modules
- ~/.gitlibs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ pom.xml.asc
.cpcache/
/test-results
/.cljs_node_repl
/public
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dev:
npx shadow-cljs node-repl

test-watch:
bin/kaocha --watch

test:
bin/kaocha
3 changes: 3 additions & 0 deletions bin/kaocha
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

clojure -A:test -m kaocha.runner "$@"
12 changes: 6 additions & 6 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
:aliases {:provided {:extra-deps {org.clojure/clojure {:mvn/version "1.10.3"}
org.clojure/clojurescript {:mvn/version "1.10.773"}}}
:test {:extra-paths ["test" "dev"]
:extra-deps {com.datomic/datomic-free {:mvn/version "0.9.5697"
:exclusions [joda-time/joda-time
commons-codec/commons-codec]}
com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "b6b3193fcc42659d7e46ecd1884a228993441182"}}
:main-opts ["-m" "cognitect.test-runner"]}}}
:extra-deps {lambdaisland/kaocha {:mvn/version "1.0.732"}
lambdaisland/kaocha-cljs {:mvn/version "0.0-71"}
lambdaisland/kaocha-junit-xml {:mvn/version "0.0.76"}
com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "b6b3193fcc42659d7e46ecd1884a228993441182"}}}}}
;:main-opts ["-m" "cognitect.test-runner"]}}}
4 changes: 4 additions & 0 deletions dev/user.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns user)

(defn main []
(prn ::cljs))
Loading