forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
100 lines (80 loc) · 2.41 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Docker image
# Build a Docker image to deploy, run, or push to a container registry.
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
batch: true
branches:
include:
- master
pr:
branches:
include:
- master
paths:
exclude:
- docs/src/main/asciidoc/*
- docs/src/main/asciidoc/images/*
- README.md
- CONTRIBUTING.md
- LICENSE.txt
- dco.txt
jobs:
- job: Build_Native_Linux
timeoutInMinutes: 180
pool:
vmImage: 'Ubuntu 16.04'
variables:
imageName: 'quarkus:$(build.buildId)'
steps:
- script: docker run --rm --publish 5432:5432 --name build-postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -d postgres:10.5
displayName: 'start postgres'
- script: docker run --rm --publish 8000:8000 --name build-dynamodb -d amazon/dynamodb-local:1.11.477
displayName: 'start dynamodb'
- task: Maven@3
displayName: 'Maven Build'
inputs:
goals: 'install'
options: '-B --settings azure-mvn-settings.xml -Dnative-image.docker-build -Dtest-postgresql -Dtest-elasticsearch -Dtest-dynamodb -Ddynamodb-local.port=8000 -Dnative-image.xmx=6g -Dnative -Dno-format'
- job: Windows_Build
timeoutInMinutes: 60
pool:
vmImage: 'vs2017-win2016'
variables:
imageName: 'quarkus-windows:$(build.buildId)'
steps:
- task: Maven@3
displayName: 'Maven Build'
inputs:
goals: 'install'
options: '-B --settings azure-mvn-settings.xml -Dno-native -Dno-format'
- job: Build_JDK11_Linux
timeoutInMinutes: 60
pool:
vmImage: 'Ubuntu 16.04'
variables:
imageName: 'quarkus-jdk11:$(build.buildId)'
steps:
- task: Maven@3
displayName: 'Maven Build'
inputs:
jdkVersionOption: '1.11'
goals: 'install'
options: '-B --settings azure-mvn-settings.xml -Dno-native -Dno-format'
- job: Run_TCKs
timeoutInMinutes: 45
pool:
vmImage: 'Ubuntu 16.04'
variables:
imageName: 'quarkus:$(build.buildId)'
steps:
- task: Maven@3
displayName: 'Maven Install'
inputs:
goals: 'install'
options: '-B --settings azure-mvn-settings.xml -Dno-native -Dno-format -DskipTests -Dtcks'
- task: Maven@3
displayName: 'Maven Verify'
inputs:
goals: 'verify'
mavenPomFile: 'tcks/pom.xml'