From f890fb4c587c9a8fd5a05aa53b93771cf10f092a Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 14 Mar 2022 16:09:13 +0100 Subject: [PATCH] Add bb tests to CI --- .gitignore | 2 ++ .travis.yml | 2 ++ README.md | 4 ++++ bb.edn | 19 +++++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 bb.edn diff --git a/.gitignore b/.gitignore index 8588983..cb62692 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ pom.xml.asc .lein-failures .cljs_node_repl out/ +.cpcache +.cache diff --git a/.travis.yml b/.travis.yml index 4eb8d9f..e7f6114 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,5 @@ cache: script: - lein test - lein doo node test-build once + - bash <(curl https://raw.githubusercontent.com/babashka/babashka/master/install) --version 0.7.8 --dir . + - bb test:bb diff --git a/README.md b/README.md index 20e3dec..0fc49ae 100644 --- a/README.md +++ b/README.md @@ -334,6 +334,10 @@ When using Specter in a project with [clj-kondo](https://github.com/clj-kondo/cl com.rpl.specter/defrichnav clojure.core/defn}} ``` +# Babashka + +This library is compatible with [babashka](https://babashka.org/) as of specter 1.1.4 and babashka 0.7.8. + # License Copyright 2015-2020 Red Planet Labs, Inc. Specter is licensed under Apache License v2.0. diff --git a/bb.edn b/bb.edn new file mode 100644 index 0000000..0d3f3c8 --- /dev/null +++ b/bb.edn @@ -0,0 +1,19 @@ +{:paths ["src/clj"] + :tasks + {test:clj {:doc "Run clj tests with leiningen" + :task (shell "lein test")} + + test:cljs {:doc "Run cljs tests with leiningen" + :task (shell "lein doo node test-build once")} + + test:bb {:doc "Run bb tests" + :extra-paths ["test"] + :extra-deps {org.clojure/test.check {:mvn/version "0.9.0"} + io.github.cognitect-labs/test-runner + {:git/tag "v0.5.0" :git/sha "b3fd0d2"} + org.clojure/tools.namespace {:git/url "https://github.com/babashka/tools.namespace" + :git/sha "3625153ee66dfcec2ba600851b5b2cbdab8fae6c"}} + :requires ([cognitect.test-runner :as tr]) + :task (apply tr/-main + "-d" "test" + *command-line-args*)}}}