Squashed 'libs/CommService/' content from commit 7ccc0fc
git-subtree-dir: libs/CommService git-subtree-split: 7ccc0fce88bbc5969df060058cf0fb57abe3bcf9
This commit is contained in:
13
libs/CLI11/.ci/azure-build.yml
Normal file
13
libs/CLI11/.ci/azure-build.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
17
libs/CLI11/.ci/azure-cmake.yml
Normal file
17
libs/CLI11/.ci/azure-cmake.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
9
libs/CLI11/.ci/azure-test.yml
Normal file
9
libs/CLI11/.ci/azure-test.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
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"
|
||||
25
libs/CLI11/.ci/build_doxygen.sh
Normal file
25
libs/CLI11/.ci/build_doxygen.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/env sh
|
||||
# (Source me)
|
||||
|
||||
set -evx
|
||||
|
||||
#DOXYGEN_URL="http://doxygen.nl/files/doxygen-1.8.17.src.tar.gz"
|
||||
DOXYGEN_URL="https://github.com/doxygen/doxygen/archive/Release_1_8_15.tar.gz"
|
||||
cd "${DEPS_DIR}"
|
||||
|
||||
if [[ ! -f "${DEPS_DIR}/doxygen/build/bin/doxygen" ]] ; then
|
||||
echo "Downloading Doxygen"
|
||||
mkdir -p doxygen
|
||||
travis_retry wget --no-check-certificate --quiet -O - "${DOXYGEN_URL}" | tar --strip-components=1 -xz -C doxygen
|
||||
cd doxygen
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ..
|
||||
make -j2
|
||||
fi
|
||||
|
||||
export PATH="${DEPS_DIR}/doxygen/build/bin:${PATH}"
|
||||
|
||||
cd "${TRAVIS_BUILD_DIR}"
|
||||
|
||||
set +evx
|
||||
17
libs/CLI11/.ci/build_lcov.sh
Normal file
17
libs/CLI11/.ci/build_lcov.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/env sh
|
||||
# (Source me)
|
||||
set -evx
|
||||
|
||||
LCOV_URL="http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz"
|
||||
cd "${DEPS_DIR}"
|
||||
|
||||
if [[ ! -f "${DEPS_DIR}/lcov/bin/lcov" ]] ; then
|
||||
echo "Downloading lcov"
|
||||
mkdir -p lcov
|
||||
travis_retry wget --no-check-certificate --quiet -O - "${LCOV_URL}" | tar --strip-components=1 -xz -C lcov
|
||||
fi
|
||||
|
||||
export PATH="${DEPS_DIR}/lcov/bin:${PATH}"
|
||||
cd "${TRAVIS_BUILD_DIR}"
|
||||
|
||||
set +evx
|
||||
23
libs/CLI11/.ci/make_and_test.sh
Executable file
23
libs/CLI11/.ci/make_and_test.sh
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
libs/CLI11/.ci/run_codecov.sh
Executable file
27
libs/CLI11/.ci/run_codecov.sh
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