Skip to content

Commit

Permalink
fixed unit tests in appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jkriege2 committed Jan 23, 2024
1 parent 9c54395 commit 4695f35
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit 4695f35

Please sign in to comment.