github.com/galamsiva2020/kubernetes-heapster-monitoring@v0.0.0-20210823134957-3c1baa7c1e70/integration/.jenkins.sh (about)

     1  #!/bin/bash
     2  
     3  set -e -x
     4  
     5  export GOPATH="$JENKINS_HOME/workspace/project"
     6  export GOBIN="$GOPATH/bin"
     7  export PATH="$GOBIN:$PATH"
     8  
     9  # Kubernetes version(s) to run the integration tests against.
    10  kube_version="1.9.3"
    11  
    12  if ! git diff --name-only origin/master | grep -c -E "*.go|*.sh|.*yaml|Makefile" &> /dev/null; then
    13    echo "This PR does not touch files that require integration testing. Skipping integration tests!"
    14    exit 0
    15  fi
    16  
    17  make -e SUPPORTED_KUBE_VERSIONS=$kube_version test-unit test-integration