github.com/interconnectedcloud/qdr-operator@v0.0.0-20210826174505-576d2b33dac7/.travis.yml (about) 1 sudo: required 2 dist: bionic 3 language: go 4 go: 5 - master 6 - 1.14.x 7 - 1.13.x 8 9 cache: 10 directories: 11 - $HOME/.cache/go-build 12 - $HOME/gopath/pkg/mod 13 14 go_import_path: github.com/interconnectedcloud/qdr-operator 15 16 services: 17 - docker 18 19 git: 20 depth: 1 21 22 env: 23 global: 24 - KUBECONFIG=$HOME/.kube/config 25 - KUBERNETES_VERSION=$(curl -k -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) 26 - OPERATORSDK_VERSION=v0.17.0 27 28 # QDR 29 - REGISTRY=quay.io/interconnectedcloud 30 - IMAGE=qdr-operator 31 - TAG=latest 32 33 before_install: 34 # Install Go Dep 35 - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh 36 - dep ensure --vendor-only 37 38 # Get tools 39 - go get sigs.k8s.io/kind 40 - go get golang.org/x/lint/golint 41 42 # Setup kubectl 43 - curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl 44 - chmod +x kubectl 45 - sudo mv kubectl /usr/local/bin/ 46 47 # Create a new Kubernetes cluster using KinD 48 - kind create cluster 49 - kubectl cluster-info 50 51 # Install Operator SDK 52 - curl -Lo operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/${OPERATORSDK_VERSION}/operator-sdk-${OPERATORSDK_VERSION}-x86_64-linux-gnu 53 - chmod +x operator-sdk 54 - sudo mv operator-sdk /usr/local/bin/ 55 56 # Setup 57 - cd $GOPATH/src/github.com/interconnectedcloud/qdr-operator 58 - dep ensure -v && dep status 59 60 # Install 61 62 script: 63 - cd $GOPATH/src/github.com/interconnectedcloud/qdr-operator 64 - make 65 - go test --count=1 -v ./test/e2e -covermode=atomic -coverprofile=organize.cov