Add examples to CI (build only for now) (#143)

This commit is contained in:
Giovanni Petrantoni 2020-04-19 14:04:53 +09:00 committed by Dmitriy Ryajov
parent 81496fb767
commit 09d9f2e717
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
4 changed files with 10 additions and 1 deletions

View File

@ -47,6 +47,7 @@ build_script:
test_script:
- nimble test
- nimble examples_build
deploy: off

View File

@ -50,4 +50,4 @@ install:
script:
- nimble install -y --depsOnly
- nimble test
- nimble examples_build

View File

@ -188,4 +188,5 @@ steps:
gcc -v
nimble test
nimble examples_build
displayName: 'Testing the package'

View File

@ -23,7 +23,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"