Set git sha from parameter

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>
Upstream-commit: b2faf24925ea0f820db62e1f3d96ee347972f12a
Component: engine
This commit is contained in:
Daniel Nephin
2018-01-16 16:50:57 -05:00
parent f088309662
commit c2691aeef9
+3 -1
View File
@@ -4,7 +4,9 @@ set -eu -o pipefail
hack/validate/default
hack/test/unit
bash <(curl -s https://codecov.io/bash) -f coverage.txt || \
bash <(curl -s https://codecov.io/bash) \
-f coverage.txt \
-C $GIT_SHA1 || \
echo 'Codecov failed to upload'
hack/make.sh \