Mercurial > games > semicongine
comparison config.nims @ 979:6406766a222d
fix: tests
author | sam <sam@basx.dev> |
---|---|
date | Sat, 06 Apr 2024 15:27:09 +0700 |
parents | fe48b091e83f |
children | 5934c5615f13 |
comparison
equal
deleted
inserted
replaced
978:d01d318c90f0 | 979:6406766a222d |
---|---|
10 | 10 |
11 task build_dev, "build dev": | 11 task build_dev, "build dev": |
12 semicongine_build_switches(buildname = "dev") | 12 semicongine_build_switches(buildname = "dev") |
13 setCommand "c" | 13 setCommand "c" |
14 let outdir = semicongine_builddir(buildname = "dev") | 14 let outdir = semicongine_builddir(buildname = "dev") |
15 semicongine_pack(outdir, bundleType = "exe", resourceRoot = "resources") | 15 semicongine_pack(outdir, bundleType = "exe", resourceRoot = "tests/resources", withSteam = false) |
16 | |
17 task build_dev_zip, "build dev zip": | |
18 semicongine_build_switches(buildname = "dev") | |
19 setCommand "c" | |
20 let outdir = semicongine_builddir(buildname = "dev") | |
21 semicongine_pack(outdir, bundleType = "zip", resourceRoot = "tests/resources", withSteam = false) | |
22 | |
23 task build_dev_dir, "build dev dir": | |
24 semicongine_build_switches(buildname = "dev") | |
25 setCommand "c" | |
26 let outdir = semicongine_builddir(buildname = "dev") | |
27 semicongine_pack(outdir, bundleType = "dir", resourceRoot = "tests/resources", withSteam = false) | |
16 | 28 |
17 task build_release, "build release": | 29 task build_release, "build release": |
18 switch "define", "release" | 30 switch "define", "release" |
19 switch "app", "gui" | 31 switch "app", "gui" |
20 semicongine_build_switches(buildname = "release") | 32 semicongine_build_switches(buildname = "release") |
21 setCommand "c" | 33 setCommand "c" |
22 let outdir = semicongine_builddir(buildname = "release") | 34 let outdir = semicongine_builddir(buildname = "release") |
23 semicongine_pack(outdir, bundleType = "exe", resourceRoot = "resources") | 35 semicongine_pack(outdir, bundleType = "exe", resourceRoot = "tests/resources", withSteam = false) |
24 | 36 |
25 | 37 |
26 task build_all_debug, "build all examples for debug": | 38 task build_all_debug, "build all examples for debug": |
27 for file in listFiles("examples"): | 39 for file in listFiles("examples"): |
28 if file.endsWith(".nim"): | 40 if file.endsWith(".nim"): |
34 exec(&"nim build -d:release {file}") | 46 exec(&"nim build -d:release {file}") |
35 | 47 |
36 task test_all, "Run all test programs": | 48 task test_all, "Run all test programs": |
37 for file in listFiles("tests"): | 49 for file in listFiles("tests"): |
38 if file.endsWith(".nim") and not file.endsWith("test_resources.nim"): | 50 if file.endsWith(".nim") and not file.endsWith("test_resources.nim"): |
39 exec(&"nim build --run {file}") | 51 exec(&"nim build_dev --run {file}") |
40 | 52 |
41 exec("nim build -d:BUILD_RESOURCEROOT=tests/resources -d:PACKAGETYPE=dir --run tests/test_resources.nim") | 53 exec("nim build_dev --run tests/test_resources.nim") |
42 exec("nim build -d:BUILD_RESOURCEROOT=tests/resources -d:PACKAGETYPE=zip --run tests/test_resources.nim") | 54 exec("nim build_dev_zip --run tests/test_resources.nim") |
43 exec("nim build -d:BUILD_RESOURCEROOT=tests/resources -d:PACKAGETYPE=exe --run tests/test_resources.nim") | 55 exec("nim build_dev_dir --run tests/test_resources.nim") |
44 | 56 |
45 task publish, "publish all build": | 57 task publish, "publish all build": |
46 for file in listDirs("build/debug/linux"): | 58 for file in listDirs("build/debug/linux"): |
47 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/") | 59 exec(&"scp -r {file} sam@mail.basx.dev:/var/www/public.basx.dev/semicongine/debug/linux/") |
48 for file in listDirs("build/release/linux"): | 60 for file in listDirs("build/release/linux"): |