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
@ -21,7 +21,7 @@ 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