diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2019-10-11 12:30:59 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-02-05 23:10:40 +0100 |
commit | 57be3635daf9c7c7413564e7d93326ee74096e94 (patch) | |
tree | 3f87c52462b2a39a3226d22ca264649e1502b006 /appveyor.yml | |
parent | d677d691bd1ca40fb69fb7d454ac4b9c4aa9acd2 (diff) |
appveyor.yml: Upload test result XML
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml index 75f4e1ba08..60f3b0f48b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -51,7 +51,7 @@ for: install: - sudo apt-get update - - sudo apt-get -y install gdb libavformat-dev libchromaprint-dev libfaad-dev libflac-dev libid3tag0-dev libmad0-dev libmodplug-dev libmp3lame-dev libmp4v2-dev libopus-dev libopusfile-dev libportmidi-dev libprotobuf-dev libqt5opengl5-dev libqt5sql5-sqlite libqt5svg5-dev librubberband-dev libshout3-dev libsndfile1-dev libsqlite3-dev libtag1-dev libupower-glib-dev libusb-1.0-0-dev libwavpack-dev portaudio19-dev protobuf-compiler qt5-default qtscript5-dev libqt5x11extras5-dev cmake qt5keychain-dev liblilv-dev libsoundtouch-dev + - sudo apt-get -y install gdb libavformat-dev libchromaprint-dev libfaad-dev libflac-dev libid3tag0-dev libmad0-dev libmodplug-dev libmp3lame-dev libmp4v2-dev libopus-dev libopusfile-dev libportmidi-dev libprotobuf-dev libqt5opengl5-dev libqt5sql5-sqlite libqt5svg5-dev librubberband-dev libshout3-dev libsndfile1-dev libsqlite3-dev libtag1-dev libupower-glib-dev libusb-1.0-0-dev libwavpack-dev portaudio19-dev protobuf-compiler qt5-default qtscript5-dev libqt5x11extras5-dev cmake qt5keychain-dev liblilv-dev libsoundtouch-dev xsltproc build_script: - export CMAKE_BUILD_PARALLEL_LEVEL="$(nproc)" @@ -63,9 +63,15 @@ for: test_script: - export GTEST_COLOR=1 CTEST_OUTPUT_ON_FAILURE=1 - - xvfb-run -- cmake --build . --target test + - xvfb-run -- ctest -T test - xvfb-run -- cmake --build . --target benchmark + after_test: + - curl -OL https://raw.githubusercontent.com/rpavlik/jenkins-ctest-plugin/master/ctest-to-junit.xsl + - xsltproc -o ctest-to-junit-results.xml ctest-to-junit.xsl Testing/*/Test.xml + - curl -F 'file=@ctest-to-junit-results.xml' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID" + + ########## END UBUNTU SPECIFIC CONFIGURATION ########## ########## WINDOWS SPECIFIC CONFIGURATION ########## @@ -135,9 +141,20 @@ for: # unbuffer standard & error output - set GTEST_COLOR=1 - set CTEST_OUTPUT_ON_FAILURE=1 - - ctest -C "Release" + - ctest -C "Release" -T test - cmake --build . --config "Release" --target benchmark + after_test: + # Found at https://help.appveyor.com/discussions/suggestions/5298-support-ctest-xml-test-results + - ps: | + $ctest_xml = Get-ChildItem -Path Testing\*\Test.xml + $XSLInputElement = New-Object System.Xml.Xsl.XslCompiledTransform + $XSLInputElement.Load("https://raw.githubusercontent.com/rpavlik/jenkins-ctest-plugin/master/ctest-to-junit.xsl") + $XSLInputElement.Transform((Resolve-Path $ctest_xml), (Join-Path (Resolve-Path .) "ctest-to-junit-results.xml")) + $wc = New-Object 'System.Net.WebClient' + $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\ctest-to-junit-results.xml)) + + artifacts: - path: 'cmake_build/*.exe' - path: 'cmake_build/*.msi' |