File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ [ ![ codecov] ( https://codecov.workiva.net/gh/Workiva/platform_detect/branch/master/graph/badge.svg?token=BF7AmHyx4L )] ( https://codecov.workiva.net/gh/Workiva/platform_detect )
2
+
1
3
# platform_detect
2
4
3
5
A library for detecting browser and platform type and version.
Original file line number Diff line number Diff line change 1
1
project : dart
2
2
language : dart
3
3
4
+ env :
5
+ - CODECOV_TOKEN='ba029200-53f5-4804-87b4-261d4fac4479'
6
+
4
7
# dart 1.19.1, built from https://github.com/Workiva/smithy-runner-dart/tree/0.0.4
5
8
runner_image : drydock-prod.workiva.org/workiva/smithy-runner-dart:74173
6
9
@@ -9,11 +12,13 @@ script:
9
12
- pub run dart_dev format --check
10
13
- pub run dart_dev analyze
11
14
- pub run dart_dev test
15
+ - xvfb-run pub run dart_dev coverage --no-html
12
16
13
17
after_script :
14
18
- pub run dart_dev docs --no-open
15
19
- cd doc/api && tar -zcvf api.tar.gz * && cd ../..
16
20
- tar czvf platform_detect.pub.tgz LICENSE README.md pubspec.yaml lib/
21
+ - ./tool/codecov.sh
17
22
18
23
artifacts :
19
24
build :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -z " $GIT_BRANCH " ]
4
+ then
5
+ echo " GIT_BRANCH environment variable not set, skipping codecov push"
6
+ else
7
+ TRACKING_REMOTE=" $( git for-each-ref --format=' %(upstream:short)' $( git symbolic-ref -q HEAD) | cut -d' /' -f1 | xargs git ls-remote --get-url | cut -d' :' -f2 | sed ' s/.git$//' ) "
8
+ bash <( curl -s https://codecov.workiva.net/bash) -u https://codecov.workiva.net -t $CODECOV_TOKEN -r $TRACKING_REMOTE -f coverage/coverage.lcov || echo " ERROR: Codecov failed to upload reports."
9
+ fi
You can’t perform that action at this time.
0 commit comments