add test for vcc compiler

This commit is contained in:
jangko 2020-06-15 21:09:41 +07:00
parent 22fabba6df
commit e1b6d5c92f
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
4 changed files with 12 additions and 0 deletions

View File

@ -34,6 +34,9 @@ build_script:
test_script: test_script:
- nimble test - nimble test
- IF "%PLATFORM%" == "x86" CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- IF "%PLATFORM%" == "x64" CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- nimble testvcc
deploy: off deploy: off

1
.gitignore vendored
View File

@ -1 +1,2 @@
nimcache nimcache
*.exe

View File

@ -12,3 +12,7 @@ requires "nim >= 1.2.0"
task test, "Run all tests": task test, "Run all tests":
exec "nim c -r --threads:off tests/all_tests" exec "nim c -r --threads:off tests/all_tests"
exec "nim c -r --threads:on -d:nimTypeNames tests/all_tests" exec "nim c -r --threads:on -d:nimTypeNames tests/all_tests"
task testvcc, "Run all tests with vcc compiler":
exec "nim c -r --cc:vcc --threads:off tests/all_tests"
exec "nim c -r --cc:vcc --threads:on -d:nimTypeNames tests/all_tests"

4
tests/nim.cfg Normal file
View File

@ -0,0 +1,4 @@
vcc.exe = "cl.exe"
vcc.cpp.exe = "cl.exe"
vcc.linkerexe = "cl.exe"
vcc.cpp.linkerexe = "cl.exe"