Skip to content

Commit

Permalink
add multi-version test script
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
seancorfield committed Oct 4, 2024
1 parent edb64e9 commit 4831a7c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -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"}}}
Expand Down
20 changes: 20 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4831a7c

Please sign in to comment.