From ab087aacef7096b29451ae9e7a4a3a06cd77e44e Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 11 Feb 2016 19:15:14 -0800 Subject: [PATCH] remove coverage testing for good Signed-off-by: Victor Vieux --- .travis.yml | 2 -- script/coverage | 21 --------------------- 2 files changed, 23 deletions(-) delete mode 100755 script/coverage diff --git a/.travis.yml b/.travis.yml index cd571e3f81..f6478e0843 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,6 @@ install: - export GOPATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH - export PATH=${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH - 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/GeertJohan/fgt @@ -26,4 +25,3 @@ script: - GOOS=windows go build - GOOS=linux go build - go test -v -race ./... - - script/coverage diff --git a/script/coverage b/script/coverage deleted file mode 100755 index cb7400c1e7..0000000000 --- a/script/coverage +++ /dev/null @@ -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