1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Set up CI with Azure Pipelines. (#510)

This commit is contained in:
Craig Peterson
2019-06-27 01:40:18 -04:00
committed by GitHub
parent 5b5ae861ae
commit f224970ceb
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# shared step for setting up go env
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/go?view=azure-devops#build-a-container-image
steps:
- script: |
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'