mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-16 22:47:12 +00:00
Update test.sh with coveralls job inclusion
This commit is contained in:
committed by
rkamudhan
parent
e43f06b61d
commit
86af6ab69f
@@ -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 .
|
||||
|
2
test.sh
2
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 ./..."
|
||||
|
||||
|
Reference in New Issue
Block a user