Test for multiple packages

disco_info_form
Mickael Remond 6 years ago
parent 843059b096
commit fef7d1ec50
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

@ -2,7 +2,7 @@
steps:
- name: test
service: build
command: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
command: ./test.sh
- name: codecov
service: build
command: bash -c "curl -s https://codecov.io/bash"

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
Loading…
Cancel
Save