Clean up and try to use ctest for OS X and Windows.

This commit is contained in:
Ryan Curtin
2019-11-28 23:19:41 -05:00
parent 56e017f6f3
commit cbc41eaf66
3 changed files with 15 additions and 23 deletions
-3
View File
@@ -56,9 +56,6 @@ steps:
- script: cd build && ctest -T Test .
displayName: 'Run tests via ctest'
- script: find build/
displayName: 'List build directory.'
# Publish test results to Azure Pipelines
- task: PublishTestResults@2
inputs:
+7 -13
View File
@@ -36,27 +36,21 @@ steps:
- script: cd build && make -j2
displayName: 'Build'
# Run tests
- script: cd build && bin/mlpack_test --result_code=no --report_level=detailed --log_level=test_suite --log_format=HRF --log_sink=res.txt
displayName: 'Run tests'
# Process test results
- bash: |
python conf/ci/convert.py > mlpack_test.xml
displayName: 'Process test results'
# Run tests via ctest.
- script: cd build && ctest -T Test .
displayName: 'Run tests via ctest'
# Publish test results to Azure Pipelines
- task: PublishTestResults@2
inputs:
testResultsFormat: JUnit
testResultsFiles: 'mlpack_test.xml'
testResultsFormat: cTest
testResultsFiles: build/Testing/*/Test.xml
failTaskOnFailedTests: true
displayName: 'Publish tests'
# Publish build artifacts to Azure Pipelines
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'mlpack_test.xml'
artifactName: 'mlpack_test_macos.xml'
pathtoPublish: 'build/Testing/'
artifactName: 'Tests'
displayName: 'Publish artifacts test results'
+8 -7
View File
@@ -95,10 +95,11 @@ steps:
Release/mlpack_test.exe --result_code=no --report_level=detailed --log_level=test_suite --log_format=HRF --log_sink=res.txt
displayName: 'Run tests'
# Process test results
# Run tests via ctest.
- bash: |
python conf/ci/convert.py > mlpack_test.xml
displayName: 'Process test results'
cd build
ctest -T Test .
displayName: 'Run tests via ctest'
# Copy artifacts
- powershell: |
@@ -138,14 +139,14 @@ steps:
displayName: 'Publish artifacts complete'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'mlpack_test.xml'
artifactName: $(ArchiveTests)
pathtoPublish: 'build/Testing/'
artifactName: 'Tests'
displayName: 'Publish artifacts test results'
# Publish test results to Azure Pipelines
- task: PublishTestResults@2
inputs:
testResultsFormat: JUnit
testResultsFiles: 'mlpack_test.xml'
testResultsFormat: cTest
testResultsFiles: build/Testing/*/Test.xml
failTaskOnFailedTests: true
displayName: 'Publish tests'