mirror of https://github.com/hashicorp/terraform
parent
449ea72e87
commit
9ae266f8fe
@ -1,14 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# Consistent output so travis does not think we're dead during long running
|
||||
# tests.
|
||||
export PING_SLEEP=30
|
||||
bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
|
||||
PING_LOOP_PID=$!
|
||||
|
||||
make testacc
|
||||
TEST_OUTPUT=$?
|
||||
|
||||
kill $PING_LOOP_PID
|
||||
exit $TEST_OUTPUT
|
||||
set -e
|
||||
echo "" > coverage.txt
|
||||
|
||||
for d in $(go list ./... | grep -v vendor); do
|
||||
go test -mod=vendor -timeout=2m -parallel=4 -coverprofile=profile.out -covermode=atomic $d
|
||||
if [ -f profile.out ]; then
|
||||
cat profile.out >> coverage.txt
|
||||
rm profile.out
|
||||
fi
|
||||
done
|
||||
|
||||
Loading…
Reference in new issue