66
77version : 1.0.{build}-{branch}
88
9+ shallow_clone : false
10+
911branches :
1012 only :
1113 - master
@@ -17,10 +19,14 @@ branches:
1719
1820matrix :
1921 fast_finish : false
22+ # Adding MAYFAIL to any matrix job allows it to fail but the build stays green:
23+ allow_failures :
24+ - MAYFAIL : true
2025
2126environment :
2227 global :
2328 B2_CI_VERSION : 1
29+ GIT_FETCH_JOBS : 4
2430 # see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties
2531 # to use the default for a given environment, comment it out; recommend you build debug and release however:
2632 # on Windows it is important to exercise all the possibilities, especially shared vs static, however most
@@ -31,6 +37,7 @@ environment:
3137 B2_VARIANT : release,debug
3238 # Include OpenCppCoverage and git bash (avoid WSL bash)
3339 PATH : ' C:\Program Files\OpenCppCoverage;C:\Program Files\Git\bin;%PATH%'
40+ # CODECOV_TOKEN: { secure: BUWmc1TLOFKpwqt5vE27s8j5nZKbEhq2s4BAUx2oap4dBrHEUPwdNScqfYBecLxm }
3441 matrix :
3542 - FLAVOR : Visual Studio 2019
3643 APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
@@ -104,9 +111,6 @@ environment:
104111 configuration : Debug
105112 BOOST_ROOT : C:\Libraries\boost_1_73_0
106113 COVERAGE : true
107- # Work around for https://community.codecov.io/t/bash-script-does-not-detect-appveyor/1094
108- APPVEYOR : true
109- CI : true
110114 # Superproject CMake build
111115 - FLAVOR : Superproject CMake build - VS 2019
112116 APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
@@ -123,8 +127,9 @@ environment:
123127 secure : Qq4PZ3QlpYtg3HEyn9r2Og==
124128
125129install :
126- - git clone https://github.com/boostorg/boost-ci.git C:\boost-ci-cloned
127- - xcopy /s /e /q /i /y C:\boost-ci-cloned\ci .\ci
130+ - git clone --depth 1 https://github.com/boostorg/boost-ci.git C:\boost-ci-cloned
131+ # Copy ci folder if not testing Boost.CI
132+ - if NOT "%APPVEYOR_PROJECT_NAME%" == "boost-ci" xcopy /s /e /q /i /y C:\boost-ci-cloned\ci .\ci
128133 - rmdir /s /q C:\boost-ci-cloned
129134 - ci\appveyor\install.bat
130135
@@ -154,20 +159,20 @@ for:
154159 - ps : |
155160 If ($env:COVERAGE -eq "true") {
156161 choco install opencppcoverage
157- Invoke-WebRequest -Uri ' https://codecov.io/bash' -OutFile codecov.sh
162+ Invoke-WebRequest -Uri https://uploader. codecov.io/latest/windows/codecov.exe -Outfile codecov.exe
158163 OpenCppCoverage.exe --quiet --export_type cobertura:cobertura.xml `
159164 --sources ${env:APPVEYOR_BUILD_FOLDER} --modules "$PWD" `
165+ --excluded_line_regex '.*// LCOV_EXCL_LINE' `
166+ --excluded_line_regex '.*// coverity\[dead_error_line\]' `
167+ --excluded_line_regex '\s*[{}]*\s*' `
168+ --excluded_line_regex '\s*(\} )?else( \{)?\s*' `
160169 --cover_children --working_dir "$PWD" -- ctest -C Debug
161- $commit = if ($env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) { $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT } else { $env:APPVEYOR_REPO_COMMIT }
162- bash codecov.sh -f cobertura.xml -n Appveyor -e APPVEYOR_BUILD_WORKER_IMAGE `
163- -C $commit `
164- -X gcov -X search -Z `
165- -U "-s" -A "-s"
170+ ./codecov.exe -n Appveyor -e APPVEYOR_BUILD_WORKER_IMAGE
166171 }
167172 # Build consumer example test
168173 - cmake --build . --config %configuration% --target install
169174 - del /F /S /Q *
170- - cmake ../test/exampleProject -G "%GENERATOR%" -DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\installed
175+ - cmake -DBOOST_NOWIDE_INSTALL_TEST=ON -G "%GENERATOR%" -DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\installed ../test/cmake_test
171176 - cmake --build . --config %configuration%
172177 - ctest --output-on-failure -C %configuration% --parallel 4
173178 # Superproject CMake build
0 commit comments