0
0

update travis to build with deps specified in manifest

This commit is contained in:
Marty Schoch 2016-04-08 17:06:25 -04:00
parent d06f4b3860
commit 18b50305e4
2 changed files with 13 additions and 11 deletions

View File

@ -3,16 +3,18 @@ sudo: false
language: go language: go
go: go:
- 1.5 - 1.6
script: script:
- go get golang.org/x/tools/cmd/cover - go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls - go get github.com/mattn/goveralls
- go get github.com/kisielk/errcheck - go get github.com/kisielk/errcheck
- go test -v ./... - go get -u github.com/FiloSottile/gvt
- gvt restore
- go test -v $(go list ./... | grep -v vendor/)
- go test -v ./test -indexType=firestorm - go test -v ./test -indexType=firestorm
- go vet ./... - go vet $(go list ./... | grep -v vendor/)
- errcheck ./... - errcheck $(go list ./... | grep -v vendor/)
- docs/project-code-coverage.sh - docs/project-code-coverage.sh
- docs/build_children.sh - docs/build_children.sh

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo "mode: count" > acc.out echo "mode: count" > acc.out
for Dir in . $(find ./* -maxdepth 10 -type d ); for Dir in . $(find ./* -maxdepth 10 -type d | grep -v vendor);
do do
if ls $Dir/*.go &> /dev/null; if ls $Dir/*.go &> /dev/null;
then then
@ -11,23 +11,23 @@ do
then then
if [ -f profile.out ] if [ -f profile.out ]
then then
cat profile.out | grep -v "mode: count" >> acc.out cat profile.out | grep -v "mode: count" >> acc.out
fi fi
else else
exit 1 exit 1
fi fi
fi fi
done done
# collect integration test coverage # collect integration test coverage
echo "mode: count" > integration-acc.out echo "mode: count" > integration-acc.out
INTPACKS=`go list ./... | grep -v utils | xargs | sed 's/ /,/g'` INTPACKS=`go list ./... | grep -v vendor | grep -v utils | xargs | sed 's/ /,/g'`
returnval=`go test -coverpkg=$INTPACKS -coverprofile=profile.out -covermode=count ./test` returnval=`go test -coverpkg=$INTPACKS -coverprofile=profile.out -covermode=count ./test`
if [[ ${returnval} != *FAIL* ]] if [[ ${returnval} != *FAIL* ]]
then then
if [ -f profile.out ] if [ -f profile.out ]
then then
cat profile.out | grep -v "mode: count" >> integration-acc.out cat profile.out | grep -v "mode: count" >> integration-acc.out
fi fi
else else
exit 1 exit 1
@ -44,9 +44,9 @@ fi
if [ -n "$COVERHTML" ] if [ -n "$COVERHTML" ]
then then
go tool cover -html=merged.out go tool cover -html=merged.out
fi fi
rm -rf ./profile.out rm -rf ./profile.out
rm -rf ./acc.out rm -rf ./acc.out
rm -rf ./integration-acc.out rm -rf ./integration-acc.out
rm -rf ./merged.out rm -rf ./merged.out