Skip to content
Permalink
Browse files

Update test.sh with coveralls job inclusion

  • Loading branch information...
rkamudhan committed Aug 17, 2018
1 parent e43f06b commit 86af6ab69fe2491ef1e33f31f86f7c0f122dae19
Showing with 2 additions and 3 deletions.
  1. +1 −2 .travis.yml
  2. +1 −1 test.sh
@@ -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 .
@@ -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 ./..."

0 comments on commit 86af6ab

Please sign in to comment.
You can’t perform that action at this time.