Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run Minikube scripts
pool:
vmImage: 'Ubuntu 16.04'
# Setup for GoLang, can skip for other languages
variables:
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '/usr/local/go1.11' # Go installation path
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code
steps:
- script: | # Setup for GoLang, can skip for other languages
mkdir -p '$(GOBIN)'
mkdir -p '$(GOPATH)/pkg'
mkdir -p '$(modulePath)'
shopt -s extglob
mv !(gopath) '$(modulePath)'
echo '##vso[task.prependpath]$(GOBIN)'
echo '##vso[task.prependpath]$(GOROOT)/bin'
displayName: 'Set up the Go workspace'
- displayName: 'Build Go and Docker image'
script: bash -f ./scripts/installtools.sh && make # Setup for GoLang, can skip for other languages
workingDirectory: '$(modulePath)'
- displayName: 'Run integration tests with Minikube'
script: bash -f ./scripts/startminikube_ci.sh && make integration
workingDirectory: '$(modulePath)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment