diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2019-03-19 13:32:06 +0100 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2019-03-19 17:59:32 +0100 |
commit | 10404e29af5068c5977d9a0dbc759c11777cdbf5 (patch) | |
tree | 7eb2d028bf45e073642ff8963aa6667a1cac2fc8 /circle.yml | |
parent | 40458177b7a03b32fd72ea7cdc685efc2349b6ac (diff) | |
download | qtlocation-mapboxgl-10404e29af5068c5977d9a0dbc759c11777cdbf5.tar.gz |
[android] unit and instrumentation tests code coverage report
Diffstat (limited to 'circle.yml')
-rw-r--r-- | circle.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/circle.yml b/circle.yml index 6883cd6f5a..87de7109ac 100644 --- a/circle.yml +++ b/circle.yml @@ -571,7 +571,16 @@ jobs: gcloud firebase test android run --type instrumentation \ --app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug/MapboxGLAndroidSDKTestApp-debug.apk \ --test platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/debug/MapboxGLAndroidSDKTestApp-debug-androidTest.apk \ - --device-ids << parameters.firebase_device_id >> --os-version-ids << parameters.firebase_device_os >> --locales en --orientations portrait --timeout 20m + --device-ids << parameters.firebase_device_id >> --os-version-ids << parameters.firebase_device_os >> --locales en --orientations portrait --timeout 20m \ + --environment-variables coverage=true,coverageFile="/sdcard/coverage.ec" --directories-to-pull /sdcard --results-dir mapbox-android-sdk-${CIRCLE_BUILD_NUM} + coverageFile=`gsutil ls gs://test-lab-186672a0qp5bq-ycr70axads3nc/mapbox-android-sdk-${CIRCLE_BUILD_NUM}/**/*.ec | tail -1` + gsutil cp $coverageFile $PWD/platform/android/MapboxGLAndroidSDK/build/jacoco | true + fi + - run: + name: Parse and send Jacoco reports + command: | + if [[ $CIRCLE_BRANCH == master ]]; then + make android-create-jacoco-report && make android-parse-and-send-jacoco-report fi - store_artifacts: path: platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug |