github.com/mrgossett/heapster@v0.18.2/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  if ! git diff --name-only origin/master | grep -c -E "*.go|*.sh|.*yaml" &> /dev/null; then
    10    echo "This PR does not touch files that require integration testing. Skipping integration tests!"
    11    exit 0
    12  fi
    13  
    14  SUPPORTED_KUBE_VERSIONS="1.0.6"
    15  TEST_NAMESPACE="default"
    16  
    17  make test-unit
    18  godep go test -a -v --timeout=30m k8s.io/heapster/integration/... --vmodule=*=1 --namespace=$TEST_NAMESPACE --kube_versions=$SUPPORTED_KUBE_VERSIONS