-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtinypool.nimble
44 lines (32 loc) · 1.4 KB
/
tinypool.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
44
# Package
version = "1.0.3"
author = "PhilippMDoerner"
description = "A minimalistic connection pooling package for sqlite"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 1.6.4"
when NimMajor >= 1 and NimMinor >= 7:
requires "db_connector >= 0.1.0"
# Tasks
task docs, "Write the package docs":
exec "nim doc --verbosity:0 --warnings:off --project --index:on " &
"--git.url:[email protected]:PhilippMDoerner/TinyPool.git" &
"--git.commit:master " &
"-o:docs/coreapi " &
"src/tinypool.nim"
task testPostgresContainedCmd, "Runs the test suite":
exec "nim c -r --mm:orc --deepcopy:on --threads:on --define:ndbPostgresOld tests/tPostgresPool.nim"
task testSqliteContainerCmd, "Runs the test suite":
exec "nim c -r --mm:orc --deepcopy:on --threads:on tests/tSqlitePool.nim"
task testMysqlContainerCmd, "Runs the test suite":
exec "nim c -r --mm:orc --deepcopy:on --threads:on tests/tMysqlPool.nim"
task postgresTests, "Run containerized postgres tests":
echo staticExec "sudo docker image rm tinypool"
exec "sudo docker-compose run --rm tests-postgres"
task sqliteTests, "Run containerized sqlite tests":
echo staticExec "sudo docker image rm tinypool"
exec "sudo docker-compose run --rm tests-sqlite"
task mysqlTests, "Run containerized mysql tests":
echo staticExec "sudo docker image rm tinypool"
exec "sudo docker-compose run --rm tests-mysql"