diff options
author | Sergei Nikulov <sergey.nikulov@gmail.com> | 2020-10-12 22:44:37 +0300 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-10-14 07:03:55 +0200 |
commit | d8fffd718b26b3a18047dc17c4516a4e0fa8cc1e (patch) | |
tree | 10552c397a359313242d9c1d465a6369f3750469 /appveyor.yml | |
parent | 112418070a5e61de248509b4bbb4986c962094f8 (diff) | |
download | curl-d8fffd718b26b3a18047dc17c4516a4e0fa8cc1e.tar.gz |
CI/tests: fix invocation of tests for CMake builds
Update appveyor.yml to set env variable TFLAGS and run tests
Remove curly braces due to CMake error (${TFLAGS} -> $TFLAGS)
Move testdeps build to build step (per review comments)
Reviewed-by: Marc Hörsken
Closes #6066
Fixes #6052
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/appveyor.yml b/appveyor.yml index 605fb3c88..beaa56d71 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -291,11 +291,19 @@ build_script: if %BUILD_SYSTEM%==autotools ( bash.exe -e -l -c "cd /c/projects/curl && ./buildconf && ./configure %CONFIG_ARGS% && make && make examples && cd tests && make" ))))) + - if %TESTING%==ON ( + if %BUILD_SYSTEM%==CMake ( + cmake --build . --config %PRJ_CFG% --parallel 2 --target testdeps + )) test_script: - if %TESTING%==ON ( - echo APPVEYOR_API_URL=%APPVEYOR_API_URL% && - bash.exe -e -l -c "cd /c/projects/curl/tests && ./runtests.pl -a -b$(($(echo '%APPVEYOR_API_URL%' | cut -d'/' -f3 | cut -d':' -f2)+1)) -p !flaky %DISABLED_TESTS%" ) + if %BUILD_SYSTEM%==CMake ( + set TFLAGS=%DISABLED_TESTS% && + cmake --build . --config %PRJ_CFG% --target test-nonflaky + ) else ( + echo APPVEYOR_API_URL=%APPVEYOR_API_URL% && + bash.exe -e -l -c "cd /c/projects/curl/tests && ./runtests.pl -a -b$(($(echo '%APPVEYOR_API_URL%' | cut -d'/' -f3 | cut -d':' -f2)+1)) -p !flaky %DISABLED_TESTS%" )) # select branches to avoid testing feature branches twice (as branch and as pull request) branches: |