v01
This commit is contained in:
11
thirdparty/CLI11/.ci/azure-build.yml
vendored
Normal file
11
thirdparty/CLI11/.ci/azure-build.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
steps:
|
||||
|
||||
- task: CMake@1
|
||||
inputs:
|
||||
cmakeArgs: .. -DCLI11_WARNINGS_AS_ERRORS=ON -DCLI11_SINGLE_FILE=$(cli11.single) -DCMAKE_CXX_STANDARD=$(cli11.std) -DCLI11_SINGLE_FILE_TESTS=$(cli11.single) -DCMAKE_BUILD_TYPE=$(cli11.build_type) $(cli11.options)
|
||||
displayName: 'Configure'
|
||||
|
||||
- script: cmake --build .
|
||||
displayName: 'Build'
|
||||
workingDirectory: build
|
||||
|
||||
16
thirdparty/CLI11/.ci/azure-cmake.yml
vendored
Normal file
16
thirdparty/CLI11/.ci/azure-cmake.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
steps:
|
||||
|
||||
# Note that silkeh/clang does not include ca-certificates, so check the shasum for verification
|
||||
- bash: |
|
||||
wget --no-check-certificate "https://cmake.org/files/v3.14/cmake-3.14.3-Linux-x86_64.tar.gz"
|
||||
echo "29faa62fb3a0b6323caa3d9557e1a5f1205614c0d4c5c2a9917f16a74f7eff68 cmake-3.14.3-Linux-x86_64.tar.gz" | shasum -sca 256
|
||||
displayName: Download CMake
|
||||
|
||||
- task: ExtractFiles@1
|
||||
inputs:
|
||||
archiveFilePatterns: 'cmake*.tar.gz'
|
||||
destinationFolder: 'cmake_program'
|
||||
displayName: Extract CMake
|
||||
|
||||
- bash: echo "##vso[task.prependpath]$(Build.SourcesDirectory)/cmake_program/cmake-3.14.3-Linux-x86_64/bin"
|
||||
displayName: Add CMake to PATH
|
||||
12
thirdparty/CLI11/.ci/azure-test.yml
vendored
Normal file
12
thirdparty/CLI11/.ci/azure-test.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
steps:
|
||||
|
||||
- script: ctest --output-on-failure -C $(cli11.build_type) -T test
|
||||
displayName: 'Test'
|
||||
workingDirectory: build
|
||||
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: 'cTest'
|
||||
testResultsFiles: '**/Test.xml'
|
||||
|
||||
|
||||
23
thirdparty/CLI11/.ci/make_and_test.sh
vendored
Executable file
23
thirdparty/CLI11/.ci/make_and_test.sh
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
echo -en "travis_fold:start:script.build\\r"
|
||||
echo "Building..."
|
||||
STD=$1
|
||||
shift
|
||||
set -evx
|
||||
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DCLI11_WARNINGS_AS_ERRORS=ON -DCLI11_SINGLE_FILE=ON -DCMAKE_CXX_STANDARD=$STD -DCLI11_SINGLE_FILE_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache $@
|
||||
cmake --build . -- -j2
|
||||
|
||||
set +evx
|
||||
echo -en "travis_fold:end:script.build\\r"
|
||||
echo -en "travis_fold:start:script.test\\r"
|
||||
echo "Testing..."
|
||||
set -evx
|
||||
|
||||
ctest --output-on-failure
|
||||
|
||||
set +evx
|
||||
echo -en "travis_fold:end:script.test\\r"
|
||||
27
thirdparty/CLI11/.ci/run_codecov.sh
vendored
Executable file
27
thirdparty/CLI11/.ci/run_codecov.sh
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo -en "travis_fold:start:script.build\\r"
|
||||
echo "Building..."
|
||||
set -evx
|
||||
|
||||
cd ${TRAVIS_BUILD_DIR}
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DCLI11_SINGLE_FILE_TESTS=OFF -DCLI11_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Coverage
|
||||
cmake --build . -- -j2
|
||||
cmake --build . --target CLI11_coverage
|
||||
|
||||
set +evx
|
||||
echo -en "travis_fold:end:script.build\\r"
|
||||
echo -en "travis_fold:start:script.lcov\\r"
|
||||
echo "Capturing and uploading LCov..."
|
||||
set -evx
|
||||
|
||||
lcov --directory . --capture --output-file coverage.info # capture coverage info
|
||||
lcov --remove coverage.info '*/tests/*' '*/examples/*' '*gtest*' '*gmock*' '/usr/*' --output-file coverage.info # filter out system
|
||||
lcov --list coverage.info #debug info
|
||||
# Uploading report to CodeCov
|
||||
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
|
||||
|
||||
set +evx
|
||||
echo -en "travis_fold:end:script.lcov\\r"
|
||||
Reference in New Issue
Block a user