Provide details via DCI Env (#32770)

This commit is contained in:
John R Barker 2017-11-09 22:12:50 +00:00 committed by GitHub
parent 59d5481abb
commit ff7c349f11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,11 +4,6 @@ set -o pipefail
# Script invoked by DCI-Agents hooks/post-running.yml # Script invoked by DCI-Agents hooks/post-running.yml
# Platform: $1 = (ios, openvswitch, vyos, ...)
# Branch: $2 = (devel, stable-2.4, ...)
test="dci/$1"
branch="$2"
if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | grep -q .; then if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | grep -q .; then
stub="" stub=""
@ -26,7 +21,6 @@ if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | g
bash <(curl -s https://codecov.io/bash) \ bash <(curl -s https://codecov.io/bash) \
-f "${file}" \ -f "${file}" \
-F "${flags}" \ -F "${flags}" \
-n "${test}" \
-t 83cd8957-dc76-488c-9ada-210dcea51633 \ -t 83cd8957-dc76-488c-9ada-210dcea51633 \
-X coveragepy \ -X coveragepy \
-X gcov \ -X gcov \
@ -34,8 +28,6 @@ if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | g
-X search \ -X search \
-X xcode \ -X xcode \
-K \ -K \
-B "$branch" \
-r "ansible/ansible" \
|| echo "Failed to upload code coverage report to codecov.io: ${file}" || echo "Failed to upload code coverage report to codecov.io: ${file}"
done done
fi fi