mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
fixed unit tests in appveyor.yml
This commit is contained in:
parent
9c543953ca
commit
4695f35770
17
appveyor.yml
17
appveyor.yml
@ -165,9 +165,12 @@ for:
|
||||
|
||||
test_script:
|
||||
- cmd: if %USE_CMAKE%==true echo == RUNNING UNIT TESTS FOR JKQtPlotter CMAKE BUILD ===============================================
|
||||
- cmd: cd %APPVEYOR_BUILD_FOLDER%
|
||||
- cmd: cd build
|
||||
- cmd: if %USE_CMAKE%==true ctest -C --config "%CONFIGURATION%" --output-on-failure --output-junit test-results.xml
|
||||
- cmd: if %USE_CMAKE%==true cd %APPVEYOR_BUILD_FOLDER%
|
||||
- cmd: if %USE_CMAKE%==true cd build
|
||||
- cmd: if %USE_CMAKE%==true ctest --version
|
||||
- cmd: if %USE_CMAKE%==true ctest --print-labels --build-config "%CONFIGURATION%"
|
||||
- cmd: if %USE_CMAKE%==true ctest --build-config "%CONFIGURATION%" -VV --output-on-failure --output-junit test-results.xml
|
||||
|
||||
|
||||
after_test:
|
||||
- find "$APPVEYOR_BUILD_FOLDER" -type f -name 'test-results.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID"
|
||||
@ -274,7 +277,7 @@ for:
|
||||
cd examples/cmake_link_example
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "$CONFIGURATION" "-DCMAKE_PREFIX_PATH=$QTDIR;$CIMG_INCLUDE_DIR;$APPVEYOR_BUILD_FOLDER\install" ..
|
||||
cmake -G "$CMAKE_GENERATOR" "-DCMAKE_PREFIX_PATH=$QTDIR;$CIMG_INCLUDE_DIR;$APPVEYOR_BUILD_FOLDER\install" ..
|
||||
cmake --build . --config "$CONFIGURATION" -j$(getconf _NPROCESSORS_ONLN) -- $CMAKE_BUILDFLAGS
|
||||
cd ..
|
||||
fi
|
||||
@ -285,8 +288,10 @@ for:
|
||||
echo == RUNNING UNIT TESTS FOR JKQtPlotter CMAKE BUILD ===============================================
|
||||
cd $APPVEYOR_BUILD_FOLDER
|
||||
cd build
|
||||
ctest -C --config "$CONFIGURATION" --output-on-failure --output-junit test-results.xml
|
||||
fi
|
||||
ctest --version
|
||||
ctest --print-labels --build-config "$CONFIGURATION"
|
||||
ctest --build-config "$CONFIGURATION" -VV --output-on-failure --output-junit test-results.xml
|
||||
fi
|
||||
after_test:
|
||||
- find "$APPVEYOR_BUILD_FOLDER" -type f -name 'test-results.xml' -print0 | xargs -0 -I '{}' curl -F 'file=@{}' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user