Clean up and try to use ctest for OS X and Windows.
This commit is contained in:
@@ -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
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user