build: further refactor ci test script for covercov groups for go 1.9.x compat
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
parent
9e5a4cb359
commit
4cf6299986
|
@ -57,6 +57,8 @@ script:
|
|||
- make fmt_check
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash) -f "./core.cov" -F core
|
||||
- bash <(curl -s https://codecov.io/bash) -f "./api.cov" -F core
|
||||
- bash <(curl -s https://codecov.io/bash) -f "./sysfs.cov" -F core
|
||||
- bash <(curl -s https://codecov.io/bash) -f "./platforms.cov" -F platforms
|
||||
- bash <(curl -s https://codecov.io/bash) -f "./drivers.cov" -F drivers
|
||||
branches:
|
||||
|
|
14
ci/test.sh
14
ci/test.sh
|
@ -25,12 +25,24 @@ else
|
|||
fi
|
||||
|
||||
# Set up core coverage report file
|
||||
result=$(go test -covermode=count -coverprofile=core.cov . ./api/ ./sysfs/)
|
||||
result=$(go test -covermode=count -coverprofile=core.cov .)
|
||||
if [ $? -ne 0 ]; then
|
||||
FAIL_PACKAGES+="core";
|
||||
fi;
|
||||
echo "$result"
|
||||
|
||||
result=$(go test -covermode=count -coverprofile=api.cov ./api/...)
|
||||
if [ $? -ne 0 ]; then
|
||||
FAIL_PACKAGES+="api";
|
||||
fi;
|
||||
echo "$result"
|
||||
|
||||
result=$(go test -covermode=count -coverprofile=sysfs.cov ./sysfs/...)
|
||||
if [ $? -ne 0 ]; then
|
||||
FAIL_PACKAGES+="sysfs";
|
||||
fi;
|
||||
echo "$result"
|
||||
|
||||
# Set up platforms coverage report file
|
||||
result=$(go test -covermode=count -coverprofile=platforms.cov ./platforms/...)
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue