Run tests only for code changes
@@ -80,6 +80,13 @@ steps:
- script: |
set -e
+ changevar=$(git --no-pager diff master --name-only | grep -v "^docs\/" | wc -l)
+ echo $changevar
+ if [ $changevar -eq 0 ]
+ then
+ echo "Skipping tests as only doc changes"
+ exit 0
+ fi
export PATH=$PATH:$(go env GOPATH)/bin
GO111MODULE="on" go get sigs.k8s.io/kind@v0.7.0
kind create cluster
