diff --git a/.travis.yml b/.travis.yml index 3a391a9..f69ebf6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,4 +17,4 @@ before_script: - cd .. script: - nimble install -y - - nimble tests + - nimble test diff --git a/appveyor.yml b/appveyor.yml index 5fb3032..5e5e69c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,6 +39,6 @@ build_script: - cd C:\projects\nim-eth-p2p - nimble install -y test_script: - - nimble tests + - nimble test deploy: off diff --git a/ethp2p.nimble b/ethp2p.nimble index dac11b1..1188647 100644 --- a/ethp2p.nimble +++ b/ethp2p.nimble @@ -9,7 +9,9 @@ skipDirs = @["tests", "Nim"] requires "nim > 0.18.0", "https://github.com/status-im/nim-rlp >= 1.0.1", "https://github.com/cheatfate/nimcrypto >= 0.1.0", "https://github.com/status-im/nim-secp256k1 >= 0.1.0" -task tests, "Runs the test suite": - exec "nim c -r tests/testecc" - exec "nim c -r tests/testecies" - exec "nim c -r tests/testauth" +proc runTest(name: string, lang = "c") = exec "nim " & lang & " -r tests/" & name + +task test, "Runs the test suite": + runTest "testecc" + runTest "testecies" + runTest "testauth"