Add examples to CI (build only for now) (#143)
This commit is contained in:
parent
2ac54331cc
commit
027e8227ea
|
@ -47,6 +47,7 @@ build_script:
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- nimble test
|
- nimble test
|
||||||
|
- nimble examples_build
|
||||||
|
|
||||||
deploy: off
|
deploy: off
|
||||||
|
|
||||||
|
|
|
@ -50,4 +50,4 @@ install:
|
||||||
script:
|
script:
|
||||||
- nimble install -y --depsOnly
|
- nimble install -y --depsOnly
|
||||||
- nimble test
|
- nimble test
|
||||||
|
- nimble examples_build
|
||||||
|
|
|
@ -188,4 +188,5 @@ steps:
|
||||||
gcc -v
|
gcc -v
|
||||||
|
|
||||||
nimble test
|
nimble test
|
||||||
|
nimble examples_build
|
||||||
displayName: 'Testing the package'
|
displayName: 'Testing the package'
|
||||||
|
|
|
@ -22,7 +22,14 @@ proc runTest(filename: string) =
|
||||||
exec "nim c -r --opt:speed -d:debug --verbosity:0 --hints:off tests/" & filename
|
exec "nim c -r --opt:speed -d:debug --verbosity:0 --hints:off tests/" & filename
|
||||||
rmFile "tests/" & filename.toExe
|
rmFile "tests/" & filename.toExe
|
||||||
|
|
||||||
|
proc buildSample(filename: string) =
|
||||||
|
exec "nim c --opt:speed --threads:on -d:debug --verbosity:0 --hints:off examples/" & filename
|
||||||
|
rmFile "examples" & filename.toExe
|
||||||
|
|
||||||
task test, "Runs the test suite":
|
task test, "Runs the test suite":
|
||||||
runTest "testnative"
|
runTest "testnative"
|
||||||
runTest "testdaemon"
|
runTest "testdaemon"
|
||||||
runTest "testinterop"
|
runTest "testinterop"
|
||||||
|
|
||||||
|
task examples_build, "Build the samples":
|
||||||
|
buildSample "directchat"
|
||||||
|
|
Loading…
Reference in New Issue