Skip to content

Instantly share code, notes, and snippets.

@lawrencegripper
Last active October 19, 2018 08:43
Show Gist options
  • Save lawrencegripper/deff8dd8844fc397fe4b5eab5f91b46a to your computer and use it in GitHub Desktop.
Save lawrencegripper/deff8dd8844fc397fe4b5eab5f91b46a to your computer and use it in GitHub Desktop.
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