* Add Linux builds to the PR and Build pipelines. Update job names.
This commit is contained in:
Adam Foxman 2020-04-02 23:35:00 -07:00 коммит произвёл GitHub
Родитель 9ac5241640
Коммит 21d634e6c9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 77 добавлений и 35 удалений

Просмотреть файл

@ -18,6 +18,8 @@ stages:
- template: templates/apple-build-job.yml
- template: templates/linux-build-job.yml
- stage: Release
dependsOn: Build
condition: succeeded()

Просмотреть файл

@ -32,3 +32,7 @@ jobs:
- template: templates/apple-build-job.yml
parameters:
DependsOn: ChangeLog
- template: templates/linux-build-job.yml
parameters:
DependsOn: ChangeLog

Просмотреть файл

@ -5,7 +5,7 @@ parameters:
jobs:
- job: AppleBuild
displayName: Apple Build
displayName: Build
${{ if ne(parameters.DependsOn, '') }}:
dependsOn: ${{ parameters.DependsOn }}
${{ if ne(parameters.DependsOn, '') }}:
@ -29,36 +29,4 @@ jobs:
MsoPlatform: MAC
BuildConfiguration: Release
steps:
- checkout: self
clean: false
submodules: false
- task: CMake@1
displayName: Generate build scripts
inputs:
workingDirectory: $(Build.BinariesDirectory)/$(MsoPlatform)/$(BuildConfiguration)
cmakeArgs: -DMSO_LIBLET_PLATFORM=$(MsoPlatform) -DCMAKE_BUILD_TYPE=$(BuildConfiguration) $(Build.SourcesDirectory)
- task: CMake@1
displayName: Build
inputs:
workingDirectory: $(Build.BinariesDirectory)/$(MsoPlatform)/$(BuildConfiguration)
cmakeArgs: --build .
- task: CMake@1
displayName: Stage built files
inputs:
workingDirectory: $(Pipeline.Workspace)
cmakeArgs: --install $(Build.BinariesDirectory)/$(MsoPlatform)/$(BuildConfiguration) --prefix tests --component tests
- script: ./eventWaitHandle_tests
displayName: Tests - Event Wait Handle
workingDirectory: $(Pipeline.Workspace)/tests/$(MsoPlatform)/$(BuildConfiguration)
- script: ./functional_tests
displayName: Tests - Functional
workingDirectory: $(Pipeline.Workspace)/tests/$(MsoPlatform)/$(BuildConfiguration)
- script: ./object_tests
displayName: Tests - Object
workingDirectory: $(Pipeline.Workspace)/tests/$(MsoPlatform)/$(BuildConfiguration)
- template: posix-build-steps.yml

Просмотреть файл

@ -0,0 +1,26 @@
parameters:
- name: DependsOn
type: string
default: ''
jobs:
- job: LinuxBuild
displayName: Build
${{ if ne(parameters.DependsOn, '') }}:
dependsOn: ${{ parameters.DependsOn }}
${{ if ne(parameters.DependsOn, '') }}:
condition: succeeded()
timeoutInMinutes: 30
cancelTimeoutInMinutes: 2
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Linux_Debug:
MsoPlatform: LINUX
BuildConfiguration: Debug
Linux_Release:
MsoPlatform: LINUX
BuildConfiguration: Release
steps:
- template: posix-build-steps.yml

Просмотреть файл

@ -0,0 +1,34 @@
steps:
- checkout: self
clean: false
submodules: false
- task: CMake@1
displayName: Generate build scripts
inputs:
workingDirectory: $(Build.BinariesDirectory)/$(MsoPlatform)/$(BuildConfiguration)
cmakeArgs: -DMSO_LIBLET_PLATFORM=$(MsoPlatform) -DCMAKE_BUILD_TYPE=$(BuildConfiguration) $(Build.SourcesDirectory)
- task: CMake@1
displayName: Build
inputs:
workingDirectory: $(Build.BinariesDirectory)/$(MsoPlatform)/$(BuildConfiguration)
cmakeArgs: --build .
- task: CMake@1
displayName: Stage built files
inputs:
workingDirectory: $(Pipeline.Workspace)
cmakeArgs: --install $(Build.BinariesDirectory)/$(MsoPlatform)/$(BuildConfiguration) --prefix tests --component tests
- script: ./eventWaitHandle_tests
displayName: Tests - Event Wait Handle
workingDirectory: $(Pipeline.Workspace)/tests/$(MsoPlatform)/$(BuildConfiguration)
- script: ./functional_tests
displayName: Tests - Functional
workingDirectory: $(Pipeline.Workspace)/tests/$(MsoPlatform)/$(BuildConfiguration)
- script: ./object_tests
displayName: Tests - Object
workingDirectory: $(Pipeline.Workspace)/tests/$(MsoPlatform)/$(BuildConfiguration)

Просмотреть файл

@ -5,7 +5,7 @@ parameters:
jobs:
- job: WindowsBuild
displayName: Windows Build
displayName: Build
${{ if ne(parameters.DependsOn, '') }}:
dependsOn: ${{ parameters.DependsOn }}
${{ if ne(parameters.DependsOn, '') }}:

Просмотреть файл

@ -0,0 +1,8 @@
{
"type": "none",
"comment": "Add Linux builds to the PR and Build pipelines. Update job names.",
"packageName": "@microsoft/mso",
"email": "adam@thefoxmans.net",
"dependentChangeType": "none",
"date": "2020-04-03T06:28:01.705Z"
}