-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
44 lines (40 loc) · 1.79 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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:
- main
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
run_on_jdk17:
CUSTOM_JDK_VERSION_OPTION: '17'
steps:
- script: echo '##vso[task.setvariable variable=MANON_TEST_SQL_JDBC_URL]jdbc:mariadb://127.0.0.1:3307/manon?useUnicode=true&characterEncoding=utf8&autoReconnect=true'
- script: echo '##vso[task.setvariable variable=MANON_TEST_BATCH_SQL_JDBC_URL]jdbc:mariadb://127.0.0.1:3308/manon_batch?useUnicode=true&characterEncoding=utf8&autoReconnect=true'
- script: echo '##vso[task.setvariable variable=MANON_TEST_REDIS_PORT]6380'
- script: sudo /etc/init.d/mysql stop
- script: sudo netstat -antp
- script: docker-compose --version
- task: DockerCompose@0
inputs:
containerregistrytype: 'Container Registry'
dockerComposeFile: './docker/docker-compose-test-azure.yml'
action: 'Run a Docker Compose command'
dockerComposeCommand: 'up -d'
- script: sleep 15
- script: sudo netstat -antp
- script: cd docker && docker-compose ps && cd ..
- script: mysql --user=root --password=woot --host=127.0.0.1 --port=3307 --execute="show databases;"
- script: mysql --user=root --password=woot --host=127.0.0.1 --port=3308 --execute="show databases;"
- task: Maven@3 # see help https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/maven?view=azure-devops
inputs:
mavenPomFile: 'pom.xml'
javaHomeOption: 'JDKVersion'
jdkVersionOption: $(CUSTOM_JDK_VERSION_OPTION)
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
goals: 'verify'
options: '-P test-mariadb,coverage,ci -B -U'