diff options
author | Juha Alanen <juha.alanen@mapbox.com> | 2020-02-26 16:19:41 +0200 |
---|---|---|
committer | Juha Alanen <juha.alanen@mapbox.com> | 2020-03-02 09:16:18 +0200 |
commit | 3a530d5589c18ccbc83bd5207842930afdd08977 (patch) | |
tree | c82257546781f8215d081405b438eabce7f2c1d9 /circle.yml | |
parent | bc9f51e78b3c294d9b437ffa9b8b045608012438 (diff) | |
download | qtlocation-mapboxgl-3a530d5589c18ccbc83bd5207842930afdd08977.tar.gz |
[build] Add nightly build to publish coverage metrics
Get coverage metrics from codecov.io and upload
them to S3.
Diffstat (limited to 'circle.yml')
-rw-r--r-- | circle.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/circle.yml b/circle.yml index fbe5aa5ee6..4b8eaca513 100644 --- a/circle.yml +++ b/circle.yml @@ -160,6 +160,23 @@ workflows: target_is_macos: true config_params: '-G Xcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_ARCHITECTURES=arm64e -DCMAKE_OSX_SYSROOT=iphoneos' build_params: '--config Release' + nightly: + triggers: + - schedule: + cron: "0 5 * * *" + filters: + branches: + only: + - master + jobs: + - build-template: + name: linux-gcc8-debug-coverage-nightly + executor_name: ubuntu-disco + target_is_linux: true + config_params: '-G Ninja -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8 -DCMAKE_BUILD_TYPE=Debug -DMBGL_WITH_COVERAGE=ON' + style_tests: true + upload_coverage: true + publish_coverage: true # # Executors: we currently support two executors, one based on Ubuntu 19.04 aka Disco @@ -386,6 +403,14 @@ commands: name: Upload coverage results to codecov.io command: | bash <(curl -sSfL https://codecov.io/bash) -X gcov || echo 'Codecov failed to upload' + publish-coverage-metrics: + steps: + - run: + name: Upload coverage metrics to s3 + command: | + if [[ $CIRCLE_BRANCH == master ]]; then + scripts/publish_core_codecoverage.js -p Linux -s Core + fi jobs: ios-render-test-runner: @@ -685,6 +710,9 @@ jobs: upload_coverage: type: boolean default: false + publish_coverage: + type: boolean + default: false executor: << parameters.executor_name >> steps: - checkout @@ -738,4 +766,8 @@ jobs: condition: << parameters.upload_coverage >> steps: - upload-coverage-results + - when: + condition: << parameters.publish_coverage >> + steps: + - publish-coverage-metrics - save |