Because we merge master into the branch before running tests, so the
actual git sha does not exist on any git remote.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
| ... | ... |
@@ -4,7 +4,9 @@ set -eu -o pipefail |
| 4 | 4 |
|
| 5 | 5 |
hack/validate/default |
| 6 | 6 |
hack/test/unit |
| 7 |
-bash <(curl -s https://codecov.io/bash) -f coverage.txt || \ |
|
| 7 |
+bash <(curl -s https://codecov.io/bash) \ |
|
| 8 |
+ -f coverage.txt \ |
|
| 9 |
+ -C $GIT_SHA1 || \ |
|
| 8 | 10 |
echo 'Codecov failed to upload' |
| 9 | 11 |
|
| 10 | 12 |
hack/make.sh \ |