make nimble file consistent with CI setup (#147)

This commit is contained in:
tersec 2023-06-10 05:15:16 +00:00 committed by GitHub
parent 3696e3f3a5
commit 2c3ae3137f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -1,5 +1,5 @@
## nim-websock ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2023 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
## * MIT license ([LICENSE-MIT](LICENSE-MIT)) ## * MIT license ([LICENSE-MIT](LICENSE-MIT))
@ -14,7 +14,7 @@ description = "WS protocol implementation"
license = "MIT" license = "MIT"
skipDirs = @["examples", "tests"] skipDirs = @["examples", "tests"]
requires "nim >= 1.2.0" # nimble will fail to install nim-websock if we are using 1.2.6 here requires "nim >= 1.6.0"
requires "chronos >= 3.0.0" requires "chronos >= 3.0.0"
requires "httputils >= 0.2.0" requires "httputils >= 0.2.0"
requires "chronicles >= 0.10.2" requires "chronicles >= 0.10.2"
@ -26,14 +26,9 @@ requires "zlib"
task test, "run tests": task test, "run tests":
let let
envNimflags = getEnv("NIMFLAGS") envNimflags = getEnv("NIMFLAGS")
styleCheckStyle =
if (NimMajor, NimMinor) < (1, 6):
"hint"
else:
"error"
nimFlags = envNimFlags & nimFlags = envNimFlags &
" --verbosity:0 --hints:off --hint:Name:on " & " --verbosity:0 --hints:off --hint:Name:on " &
"--styleCheck:usages --styleCheck:" & styleCheckStyle & "--styleCheck:usages --styleCheck:error" &
" -d:chronosStrictException" " -d:chronosStrictException"
# dont't need to run it, only want to test if it is compileable # dont't need to run it, only want to test if it is compileable