diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 9ca9132c8..000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,70 +0,0 @@ -trigger: - batch: "true" - branches: - include: - - master - -jobs: - -- job: Compile - strategy: - maxParallel: 3 - matrix: - Windows: - OS: windows - OSX: - OS: darwin - Linux: - OS: linux - steps: - - template: build/azure-pipelines/go-env.yaml - - script: "go run -mod=readonly build/build.go -os $(OS)" - -- job: "unittests" - displayName: "Run Unit Tests" - steps: - - template: build/azure-pipelines/go-env.yaml - - script: "go test -mod=readonly ./..." - -- job: "modtidy" - displayName: "Check Go Modules" - steps: - - template: build/azure-pipelines/go-env.yaml - - script: | - set -e - go mod tidy - git status --porcelain - git diff - [ ! -n "$(git status --porcelain go.mod go.sum)" ] || { echo "Error: go.mod/go.sum outdated, please run go mod tidy."; false; } - -- job: "modvendor" - displayName: "Check Go Vendor" - steps: - - template: build/azure-pipelines/go-env.yaml - - script: | - set -e - go mod vendor - git status --porcelain - [ ! -n "$(git status --porcelain vendor)" ] || { echo "Error: Vendor does not match go.mod/go.sum, please run go mod vendor."; false; } - -- job: "GoFmt" - displayName: "Check Go Formatting" - steps: - - template: build/azure-pipelines/go-env.yaml - - script: | - set -e - go fmt ./... - git status --porcelain - git diff - [ ! -n "$(git status --porcelain)" ] || { echo "Error: Go files not formatted, please run go fmt ./... ."; false; } - -- job: "GoGen" - displayName: "Check Go Generate" - steps: - - template: build/azure-pipelines/go-env.yaml - - script: | - set -e - go generate . - git status --porcelain - git diff - [ ! -n "$(git status --porcelain)" ] || { echo "Error: Generated files not up to date, please run go generate . ."; false; } diff --git a/build/azure-pipelines/choco.yaml b/build/azure-pipelines/choco.yaml deleted file mode 100644 index aa912913d..000000000 --- a/build/azure-pipelines/choco.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - -trigger: -- master - -pool: - vmImage: 'ubuntu-latest' - -steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' - -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' diff --git a/build/azure-pipelines/go-env.yaml b/build/azure-pipelines/go-env.yaml deleted file mode 100644 index 9d2f56c44..000000000 --- a/build/azure-pipelines/go-env.yaml +++ /dev/null @@ -1,6 +0,0 @@ -# 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: -- task: GoTool@0 - inputs: - version: '1.16' diff --git a/build/azure-pipelines/integration.yml b/build/azure-pipelines/integration.yml deleted file mode 100644 index c75efe39c..000000000 --- a/build/azure-pipelines/integration.yml +++ /dev/null @@ -1,121 +0,0 @@ -variables: - wd: '$(System.DefaultWorkingDirectory)/integrationTest' - -trigger: - batch: "true" - branches: - include: - - pipeline - -# Each provider gets its' own job. These will run in parallel. -# each job gets setup with only the env vars it needs for that run. -# these are defined in azure pipelines web ui as secret variables. - -jobs: - -- job: Route53 - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider ROUTE53 - workingDirectory: $(wd) - env: - R53_DOMAIN: $(R53_DOMAIN) - R53_KEY_ID: $(R53_KEY_ID) - R53_KEY: $(R53_KEY) - -- job: GCloud - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider GCLOUD - workingDirectory: $(wd) - env: - GCLOUD_DOMAIN: $(GCLOUD_DOMAIN) - GCLOUD_TYPE: $(GCLOUD_TYPE) - GCLOUD_EMAIL: $(GCLOUD_EMAIL) - GCLOUD_PROJECT: $(GCLOUD_PROJECT) - GCLOUD_PRIVATEKEY: $(GCLOUD_PRIVATEKEY) - -- job: NameDotCom - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider NAMEDOTCOM - workingDirectory: $(wd) - env: - NAMEDOTCOM_DOMAIN: $(NAMEDOTCOM_DOMAIN) - NAMEDOTCOM_KEY: $(NAMEDOTCOM_KEY) - NAMEDOTCOM_USER: $(NAMEDOTCOM_USER) - -- job: Cloudflare - steps: - - template: go-env.yaml - - script: go test -v -timeout 30m -verbose -provider CLOUDFLAREAPI - workingDirectory: $(wd) - env: - CF_TOKEN: $(CF_TOKEN) - -- job: DigitalOcean - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider DIGITALOCEAN - workingDirectory: $(wd) - env: - DO_DOMAIN: $(DO_DOMAIN) - DO_TOKEN: $(DO_TOKEN) - -- job: GandiV5 - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider GANDI_V5 - workingDirectory: $(wd) - env: - GANDI_KEY: $(GANDI_V5_APIKEY) - GANDI_DOMAIN: $(GANDI_V5_DOMAIN) - -# - job: GandiLive -# steps: -# - template: go-env.yaml -# - script: go test -v -verbose -provider GANDI-LIVEDNS -# workingDirectory: $(wd) -# env: -# GANDILIVE_KEY: $(GANDILIVE_KEY) -# GANDILIVE_DOMAIN: $(GANDILIVE_DOMAIN) - -# - job: NS1 -# steps: -# - template: go-env.yaml -# - script: go test -v -verbose -provider NS1 -# workingDirectory: $(wd) -# env: -# NS1_TOKEN: $(NS1_TOKEN) -# NS1_DOMAIN: $(NS1_DOMAIN) - -- job: DNSIMPLE - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider DNSIMPLE - workingDirectory: $(wd) - env: - DNSIMPLE_TOKEN: $(DNSIMPLE_TOKEN) - DNSIMPLE_DOMAIN: $(DNSIMPLE_DOMAIN) - -- job: Vultr - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider VULTR - workingDirectory: $(wd) - env: - VULTR_DOMAIN: $(VULTR_DOMAIN) - VULTR_TOKEN: $(VULTR_TOKEN) - -- job: Azure - steps: - - template: go-env.yaml - - script: go test -v -verbose -provider AZURE_DNS - workingDirectory: $(wd) - env: - AZURE_CLIENT_ID: $(AZ_CLIENTID) - AZURE_CLIENT_SECRET: $(AZ_CLIENTSECRET) - AZURE_DOMAIN: $(AZ_DOMAIN) - AZURE_RESOURCE_GROUP: $(AZ_RSGNAME) - AZURE_SUBSCRIPTION_ID: $(AZ_SUBSCRIPTIONID) - AZURE_TENANT_ID: $(AZ_TENANTID)