1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-05 09:48:36 +01:00

Update build process

Problem:
The cli is using an old go version
It does not use all the validation tools rancher/rancher uses

Solution:
Update to go version 1.12.9
Include goimports for validation
This commit is contained in:
Dan Ramich
2019-08-26 14:55:48 -07:00
committed by Craig Jellick
parent 8c5d6c3630
commit a8000549ed
4 changed files with 18 additions and 27 deletions

View File

@@ -5,6 +5,4 @@ cd $(dirname $0)/..
echo Running tests
PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor|bin)' | sed -e 's!^!./!' -e 's!$!/...!')"
go test -race -cover -tags=test ${PACKAGES}
go test -race -cover -tags=test .././...