mirror of
https://github.com/logos-storage/nim-asynciterators.git
synced 2026-01-02 13:33:08 +00:00
updates build config and README
This commit is contained in:
parent
957c857c18
commit
0037b8144c
@ -3,6 +3,6 @@
|
||||
Quick start:
|
||||
|
||||
```bash
|
||||
nimble install
|
||||
nimble setup -l
|
||||
nimble test
|
||||
```
|
||||
|
||||
@ -9,6 +9,8 @@ requires "chronos"
|
||||
|
||||
task test, "Runs the test suite":
|
||||
withDir "tests/":
|
||||
delEnv "NIMBLE_DIR" # use nimbledeps dir
|
||||
exec "nimble install -d -y"
|
||||
exec "nimble test -y"
|
||||
# use nimbledeps dir in the tests
|
||||
# witout this, NIMBLE_DIR will point to the parent dir
|
||||
delEnv "NIMBLE_DIR"
|
||||
exec "nimble setup -l"
|
||||
exec "nimble test"
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
--path:
|
||||
"../"
|
||||
import "../config.nims"
|
||||
# begin Nimble config (version 2)
|
||||
when withDir(thisDir(), system.fileExists("nimble.paths")):
|
||||
include "nimble.paths"
|
||||
|
||||
@ -3,16 +3,14 @@ author = "Async Iterators Authors"
|
||||
description = "Tests for Nim Async iterator helpers for Chronos"
|
||||
license = "MIT"
|
||||
|
||||
requires "questionable >= 0.10.15 & < 0.11.0"
|
||||
requires "results"
|
||||
requires "chronos"
|
||||
requires "asynctest >= 0.5.4 & < 0.6.0"
|
||||
|
||||
task test, "Runs the test suite":
|
||||
var options = "-f -r --skipParentCfg"
|
||||
var options = "-f -r"
|
||||
when (NimMajor, NimMinor) >= (1, 4):
|
||||
options &= " --warningAsError[UnsafeDefault]:on"
|
||||
options &= " --warningAsError[ProveInit]:on"
|
||||
exec "nim c " & options & " testiter.nim"
|
||||
exec "nim c " & options & " testasynciter.nim"
|
||||
exec "nim c " & options & " testasyncresultiter.nim"
|
||||
echo "" # Force output flush
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user