summaryrefslogtreecommitdiff
path: root/circle.yml
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2020-02-20 14:59:18 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-03-02 09:16:18 +0200
commit7cc2f7efd59ec27db17dc26ac2083d519ee26d98 (patch)
treec3b72ac18104e705909c0a38477aef8a75131f4e /circle.yml
parent34cb92096be1be4ec34727fbedb0c64cc9ab55c3 (diff)
downloadqtlocation-mapboxgl-7cc2f7efd59ec27db17dc26ac2083d519ee26d98.tar.gz
[build] Upload code coverage results to codecov.io
Diffstat (limited to 'circle.yml')
-rw-r--r--circle.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/circle.yml b/circle.yml
index a53b2c1a41..3717708143 100644
--- a/circle.yml
+++ b/circle.yml
@@ -85,6 +85,7 @@ workflows:
- linux-gcc8-release
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
- build-template:
name: linux-clang8-release
executor_name: ubuntu-disco
@@ -374,7 +375,12 @@ commands:
--device model=iphone11,version=13.3,locale=en,orientation=portrait --xcode-version=11.3.1 --timeout 20m \
--verbosity=debug --no-record-video --results-dir ios-test-app-${CIRCLE_BUILD_NUM}
fi
-
+ upload-coverage-results:
+ steps:
+ - run:
+ name: Upload coverage results to codecov.io
+ command: |
+ bash <(curl -sSfL https://codecov.io/bash) || echo 'Codecov failed to upload'
jobs:
ios-render-test-runner:
executor: macos-11_3_1
@@ -670,6 +676,9 @@ jobs:
style_tests:
type: boolean
default: false
+ upload_coverage:
+ type: boolean
+ default: false
executor: << parameters.executor_name >>
steps:
- checkout
@@ -719,4 +728,8 @@ jobs:
- metrics:
step_name: 'Metrics'
metrics_params: '-u rebaseline -p metrics/$CIRCLE_JOB-metrics.json'
+ - when:
+ condition: << parameters.upload_coverage >>
+ steps:
+ - upload-coverage-results
- save