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:
|
||||
- nimble test
|
||||
- nimble examples_build
|
||||
|
||||
deploy: off
|
||||
|
||||
|
|
|
@ -50,4 +50,4 @@ install:
|
|||
script:
|
||||
- nimble install -y --depsOnly
|
||||
- nimble test
|
||||
|
||||
- nimble examples_build
|
||||
|
|
|
@ -188,4 +188,5 @@ steps:
|
|||
gcc -v
|
||||
|
||||
nimble test
|
||||
nimble examples_build
|
||||
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
|
||||
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":
|
||||
runTest "testnative"
|
||||
runTest "testdaemon"
|
||||
runTest "testinterop"
|
||||
|
||||
task examples_build, "Build the samples":
|
||||
buildSample "directchat"
|
||||
|
|
Loading…
Reference in New Issue