mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CICD: Removed the old Azure Pipelines configurations (#2705)
This commit is contained in:
committed by
GitHub
parent
11f072b887
commit
99e3f9f046
@@ -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; }
|
|
@@ -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'
|
|
@@ -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'
|
|
@@ -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)
|
|
Reference in New Issue
Block a user