Initial Setup of azure-pipeline to run CI on Azure

CNCF has support from Azure to have projects use Azure DevOps. This is trying out this functionality [skip ci]
This commit is contained in:
Daniel Kozlowski 2019-06-21 03:01:28 +02:00
Родитель 6ad520ea4a
Коммит a99ae3eea4
1 изменённых файлов: 21 добавлений и 0 удалений

21
azure-pipelines.yml Normal file
Просмотреть файл

@ -0,0 +1,21 @@
pr:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
flags: "-docker -use_docker_cache -timeout=8m -print-log"
shards: [0, 1, 2, 3, 4]
flavors: ["mysql56", "mysql57", "mysql80", "mariadb", "mariadb103", "percona57", "percona80"]
jobs:
- job: tests
strategy:
matrix:
${{ each flavor in variables.flavors }}:
${{ each shard in variables.shards }}:
${{ format('{0}{1}', flavor, shard) }}:
flavor: ${{ flavor }}
shard: ${{ shard }}
steps:
- script: go run test.go -shard $(shard) -flavor $(flavor) $(flags)