update travis to build with deps specified in manifest
This commit is contained in:
parent
d06f4b3860
commit
18b50305e4
10
.travis.yml
10
.travis.yml
|
@ -3,16 +3,18 @@ sudo: false
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.5
|
||||
- 1.6
|
||||
|
||||
script:
|
||||
- go get golang.org/x/tools/cmd/cover
|
||||
- go get github.com/mattn/goveralls
|
||||
- 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 vet ./...
|
||||
- errcheck ./...
|
||||
- go vet $(go list ./... | grep -v vendor/)
|
||||
- errcheck $(go list ./... | grep -v vendor/)
|
||||
- docs/project-code-coverage.sh
|
||||
- docs/build_children.sh
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
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
|
||||
if ls $Dir/*.go &> /dev/null;
|
||||
then
|
||||
|
@ -21,7 +21,7 @@ done
|
|||
|
||||
# collect integration test coverage
|
||||
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`
|
||||
if [[ ${returnval} != *FAIL* ]]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue
Block a user