mirror of https://github.com/docker/docs.git
remove coverage testing for good
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
d5033258a6
commit
ab087aacef
|
@ -12,7 +12,6 @@ install:
|
||||||
- export GOPATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH
|
- export GOPATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH
|
||||||
- export PATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH
|
- export PATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH
|
||||||
- go get golang.org/x/tools/cmd/vet
|
- go get golang.org/x/tools/cmd/vet
|
||||||
- go get golang.org/x/tools/cmd/cover
|
|
||||||
- go get github.com/golang/lint/golint
|
- go get github.com/golang/lint/golint
|
||||||
- go get github.com/GeertJohan/fgt
|
- go get github.com/GeertJohan/fgt
|
||||||
|
|
||||||
|
@ -26,4 +25,3 @@ script:
|
||||||
- GOOS=windows go build
|
- GOOS=windows go build
|
||||||
- GOOS=linux go build
|
- GOOS=linux go build
|
||||||
- go test -v -race ./...
|
- go test -v -race ./...
|
||||||
- script/coverage
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
MODE="mode: count"
|
|
||||||
ROOT=${TRAVIS_BUILD_DIR:-.}/../../..
|
|
||||||
|
|
||||||
# Grab the list of packages.
|
|
||||||
# Exclude the API and CLI from coverage as it will be covered by integration tests.
|
|
||||||
PACKAGES=`go list ./... | grep -v github.com/docker/swarm/api | grep -v github.com/docker/swarm/cli | grep -v github.com/docker/swarm/cluster/mesos`
|
|
||||||
|
|
||||||
# Create the empty coverage file.
|
|
||||||
echo $MODE > goverage.report
|
|
||||||
|
|
||||||
# Run coverage on every package.
|
|
||||||
for package in $PACKAGES; do
|
|
||||||
output="$ROOT/$package/coverage.out"
|
|
||||||
|
|
||||||
go test -test.short -covermode=count -coverprofile=$output $package
|
|
||||||
if [ -f "$output" ] ; then
|
|
||||||
cat "$output" | grep -v "$MODE" >> goverage.report
|
|
||||||
fi
|
|
||||||
done
|
|
Loading…
Reference in New Issue