-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
applicates.nimble
43 lines (36 loc) · 1.13 KB
/
applicates.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Package
version = "0.4.0"
author = "metagn"
description = "generalized routine and symbol pointers"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 0.20.0"
when (NimMajor, NimMinor) >= (1, 4):
when (compiles do: import nimbleutils):
import nimbleutils
# https://github.com/metagn/nimbleutils
task docs, "build docs for all modules":
when declared(buildDocs):
buildDocs(gitUrl = "https://github.com/metagn/applicates")
else:
echo "docs task not implemented, need nimbleutils"
import os
task tests, "run tests for multiple backends and defines":
when declared(runTests):
var tests: seq[string] = @[]
for fn in walkDirRec("tests", followFilter = {}):
if (let (_, name, ext) = splitFile(fn);
name[0] == 't' and ext == ".nim"):
if name == "test_iterator_typed" and (NimMajor, NimMinor) == (2, 0):
# broken on 2.0
continue
tests.add(fn)
runTests(tests,
backends = {c, nims},
optionCombos = @[
"",
"-d:applicatesCacheUseTable"]
)
else:
echo "tests task not implemented, need nimbleutils"