From 4831a7cde93d42bf0f5f47b1b5fa880a4bf86cb6 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 4 Oct 2024 13:38:24 -0700 Subject: [PATCH] add multi-version test script * add 1.1.230 to changelog * stop testing against clojure 1.8 (since official matrix test doesn't include it anyway) Signed-off-by: Sean Corfield --- CHANGELOG.md | 7 +++++-- README.md | 2 +- deps.edn | 1 - run-tests.sh | 20 ++++++++++++++++++++ 4 files changed, 26 insertions(+), 4 deletions(-) create mode 100755 run-tests.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index c884e57..2736ed7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # Change Log -* Release 1.0.next in progress - * Update dependencies to latest versions for testing. +* Release 1.1.next in progress (maybe 1.2.next) + * Update dependencies to latest versions for testing; add multi-version testing script; drop Clojure 1.8 support. + +* Release 1.1.230 2024-02-19 + * Documentation and dev/test/CI infrastructure updates. * Release 1.0.219 2023-05-08 * Add ClojureCLR support [TCLI-102](https://clojure.atlassian.net/browse/TCLI-102) [@dmiller](https://github.com/dmiller). diff --git a/README.md b/README.md index 7d11e9d..0c3ed38 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ org.clojure/tools.cli {:mvn/version "1.1.230"} ``` The 0.4.x series of tools.cli supports use with `clj`/`deps.edn` and brings the legacy API to ClojureScript by switching to `.cljc` files. This means it -requires Clojure(Script) 1.8 or later. +requires Clojure(Script) 1.9 or later. The 0.3.x series of tools.cli features a new flexible API, better adherence to GNU option parsing conventions, and ClojureScript support. diff --git a/deps.edn b/deps.edn index 85b8116..e0c161b 100644 --- a/deps.edn +++ b/deps.edn @@ -1,6 +1,5 @@ {:paths ["src/main/clojure"] :aliases {:test {:extra-paths ["src/test/clojure"]} - :1.8 {:override-deps {org.clojure/clojure {:mvn/version "1.8.0"}}} :1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}} :1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.3"}}} :1.11 {:override-deps {org.clojure/clojure {:mvn/version "1.11.4"}}} diff --git a/run-tests.sh b/run-tests.sh new file mode 100755 index 0000000..5cddb96 --- /dev/null +++ b/run-tests.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +for v in 9 10 11 12 +do + echo "" + echo "Running tests for Clojure 1.$v..." + clojure -M:test:runner:1.$v + if [ $? -ne 0 ]; then + echo "Tests failed for Clojure 1.$v" + exit 1 + fi +done + +echo "" +echo "Running tests for ClojureScript..." +clojure -M:test:cljs-runner +if [ $? -ne 0 ]; then + echo "Tests failed for ClojureScript" + exit 1 +fi