From 86af6ab69fe2491ef1e33f31f86f7c0f122dae19 Mon Sep 17 00:00:00 2001 From: Kuralamudhan Ramakrishnan Date: Fri, 17 Aug 2018 15:52:57 +0100 Subject: [PATCH] Update test.sh with coveralls job inclusion --- .travis.yml | 3 +-- test.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac57e0da6..e02cedc44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,6 @@ install: # workaround golint install error in https://github.com/golang/lint/issues/288 - mkdir -p $GOPATH/src/golang.org/x - pushd $GOPATH/src/golang.org/x - - git clone https://github.com/golang/tools.git - git clone https://github.com/golang/lint.git - go get github.com/golang/lint/golint - popd @@ -30,7 +29,7 @@ before_script: script: - ./build - sudo ./test.sh - - $GOPATH/bin/goveralls -service=travis-ci + - $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci - mkdir -p ${TRAVIS_BUILD_DIR}/dist - tar cvfz ${TRAVIS_BUILD_DIR}/dist/multus-cni_amd64.tar.gz --warning=no-file-changed --exclude="dist" --exclude="vendor" . - docker build -t nfvpe/multus -f ./images/Dockerfile . diff --git a/test.sh b/test.sh index 334203c70..ad17ae8d2 100755 --- a/test.sh +++ b/test.sh @@ -13,5 +13,5 @@ export GO15VENDOREXPERIMENT=1 export GOBIN=${PWD}/bin export GOPATH=${PWD}/gopath -bash -c "umask 0; cd ${GOPATH}/src/${REPO_PATH}; PATH=${GOROOT}/bin:$(pwd)/bin:${PATH} go test ./..." +bash -c "umask 0; cd ${GOPATH}/src/${REPO_PATH}; PATH=${GOROOT}/bin:$(pwd)/bin:${PATH} go test -v -covermode=count -coverprofile=coverage.out ./..."