Merge branch 'master' into feature/object-property

This commit is contained in:
Joshua Scott 2018-10-20 01:25:17 +01:00
commit b0a2cb4d1d
2 changed files with 25 additions and 1 deletions

24
azure-pipelines.yml Normal file
View File

@ -0,0 +1,24 @@
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
pool:
vmImage: 'Ubuntu 16.04'
steps:
- script: |
rm -rf build/
mkdir build
cd build
cmake ..
make
displayName: 'Compile'
- script: |
cd build
make test CTEST_OUTPUT_ON_FAILURE=TRUE
displayName: 'Test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'build/**/test-*.xml'

View File

@ -15,5 +15,5 @@ foreach (file ${files})
CXX_STANDARD 11
)
target_link_libraries(${testcase} Catch ${PROJECT_NAME})
add_test(${testcase} ${testcase})
add_test(${testcase} ${testcase} -s -r junit -o ${PROJECT_BINARY_DIR}/Testing/${testcase}.xml)
endforeach()