File tree Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Expand file tree Collapse file tree 2 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 6
6
- bazel test --config=ci //src/test/...
7
7
branches : " !main"
8
8
9
- - label : ' :bazel : Test & Coverage'
9
+ - label : ' :codecov: + :codeclimate : Test & Coverage'
10
10
commands :
11
11
- bazel coverage --config=ci //src/test/...
12
+ - sh .buildkite/upload_coverage.sh
12
13
branches : " main"
13
- key : " coverage"
14
-
15
- - group : " :trollface: Upload Coverage"
16
- steps :
17
- - label : ' :codecov: Upload to Codecov'
18
- commands :
19
- - codecov -f "$(bazel info output_path)/_coverage/_coverage_report.dat"
20
- branches : " main"
21
-
22
- - label : ' :codeclimate: Upload to Code Climate'
23
- commands :
24
- - cc-test-reporter format-coverage -t lcov -o .coverage/codeclimate.json
25
- " $(bazel info output_path)/_coverage/_coverage_report.dat"
26
- - cc-test-reporter upload-coverage -r "$CC_TEST_REPORTER_ID" -i .coverage/codeclimate.json
27
- branches : " main"
28
-
29
- depends_on : " coverage"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ COVERAGE=" $( bazel info output_path) /_coverage/_coverage_report.dat"
4
+
5
+ echo " Upload Coverage"
6
+ codecov -f " $COVERAGE " &
7
+ PID1=$!
8
+
9
+ echo " Upload Coverage"
10
+ cc-test-reporter format-coverage -t lcov -o .coverage/codeclimate.json " $COVERAGE "
11
+ cc-test-reporter upload-coverage -r " $CC_TEST_REPORTER_ID " -i .coverage/codeclimate.json &
12
+ PID2=$!
13
+
14
+ wait $PID1 $PID2 || true
15
+ echo " Coverage Upload Done"
You can’t perform that action at this time.
0 commit comments