Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Commit de2d725

Browse files
authored
Add scripts to set up CI with Azure Pipelines for Linux (#7125)
Add scripts to set up CI with Azure Pipelines for Linux
1 parent 7ddbb0b commit de2d725

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ trigger:
1111
pr:
1212
- master
1313

14+
resources:
15+
containers:
16+
- container: ubuntu_1604_x64_build_image
17+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-10fcdcf-20190208200917
18+
1419
jobs:
1520

1621
## The following is the matrix of test runs that we have. This is

eng/build-job.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ parameters:
33
archType: ''
44
osGroup: ''
55
osIdentifier: ''
6+
containerName: ''
67
timeoutInMinutes: ''
78

89
### Product build
@@ -18,6 +19,9 @@ jobs:
1819
name: ${{ format('build_{0}_{1}_{2}', parameters.osIdentifier, parameters.archType, parameters.buildConfig) }}
1920
displayName: ${{ format('Build {0} {1} {2}', parameters.osIdentifier, parameters.archType, parameters.buildConfig) }}
2021

22+
# Note that the containers are resources defined in azure-pipelines.yml
23+
containerName: ${{ parameters.containerName }}
24+
2125
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
2226

2327
variables:
@@ -29,7 +33,6 @@ jobs:
2933
# Install native dependencies
3034
# Linux builds use docker images with dependencies preinstalled,
3135
# so we only need this step for OSX and Windows.
32-
# (TODO: figure out the name of Linux docker images that can be used by CoreRT)
3336
- ${{ if eq(parameters.osGroup, 'OSX') }}:
3437
- script: sh eng/install-native-dependencies.sh $(osGroup)
3538
displayName: Install native dependencies
@@ -63,6 +66,7 @@ jobs:
6366
displayName: Run CoreCLR Top200 tests
6467

6568
- task: PublishTestResults@2
69+
condition: succeededOrFailed()
6670
inputs:
6771
testResultsFormat: 'xUnit'
6872
testResultsFiles: '**/testResults.xml'

eng/platform-matrix.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@ jobs:
2424
osGroup: OSX
2525
osIdentifier: OSX
2626
${{ insert }}: ${{ parameters.jobParameters }}
27+
28+
# Linux x64
29+
30+
- template: ${{ parameters.jobTemplate }}
31+
parameters:
32+
buildConfig: ${{ parameters.buildConfig }}
33+
archType: x64
34+
osGroup: Linux
35+
osIdentifier: Linux
36+
containerName: ubuntu_1604_x64_build_image
37+
${{ insert }}: ${{ parameters.jobParameters }}

0 commit comments

Comments
 (0)