mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-17 06:55:48 +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
|
# workaround golint install error in https://github.com/golang/lint/issues/288
|
||||||
- mkdir -p $GOPATH/src/golang.org/x
|
- mkdir -p $GOPATH/src/golang.org/x
|
||||||
- pushd $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
|
- git clone https://github.com/golang/lint.git
|
||||||
- go get github.com/golang/lint/golint
|
- go get github.com/golang/lint/golint
|
||||||
- popd
|
- popd
|
||||||
@@ -30,7 +29,7 @@ before_script:
|
|||||||
script:
|
script:
|
||||||
- ./build
|
- ./build
|
||||||
- sudo ./test.sh
|
- sudo ./test.sh
|
||||||
- $GOPATH/bin/goveralls -service=travis-ci
|
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci
|
||||||
- mkdir -p ${TRAVIS_BUILD_DIR}/dist
|
- 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" .
|
- 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 .
|
- 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 GOBIN=${PWD}/bin
|
||||||
export GOPATH=${PWD}/gopath
|
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