From 0170715348807401cd5b06a7ec93ab91b544550c Mon Sep 17 00:00:00 2001 From: HugoGranstrom <5092565+HugoGranstrom@users.noreply.github.com> Date: Tue, 25 Jan 2022 09:23:33 +0100 Subject: [PATCH] fix nimCI and bump version to 0.7.1 --- changelog.md | 4 ++++ numericalnim.nimble | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 7dca630..60ffe1c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# v0.7.1 -25.01.2022 + +Add a `nimCI` task for the Nim CI to run now that the tests have external dependencies. + # v0.7.0 - 25.01.2022 This is a *breaking* release, due to the changes in PR #25. diff --git a/numericalnim.nimble b/numericalnim.nimble index 9bc9534..e544b42 100644 --- a/numericalnim.nimble +++ b/numericalnim.nimble @@ -1,5 +1,5 @@ # Package Information -version = "0.7.0" +version = "0.7.1" author = "Hugo Granström" description = "A collection of numerical methods written in Nim. Current features: integration, ode, optimization." license = "MIT" @@ -10,10 +10,18 @@ requires "nim >= 1.0" requires "arraymancer >= 0.5.0" requires "https://github.com/HugoGranstrom/cdt#head" +template installTestDeps() = + exec "nimble install -y https://github.com/SciNim/Measuremancer.git" + task testDeps, "Install external dependencies required for tests": ## installs all required external dependencies that are only used ## for tests - exec "nimble install https://github.com/SciNim/Measuremancer.git" + installTestDeps() + +task nimCI, "Tests that should be run by the Nim CI": + installTestDeps() + exec "nim c -r --gc:refc tests/test_integrate.nim" + exec "nim c -r --gc:orc tests/test_integrate.nim" task test, "Run all tests": exec "nim c -r tests/test_integrate.nim"