mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
parent
d74ae54b60
commit
179fba51f5
68
azure-pipelines.yml
Normal file
68
azure-pipelines.yml
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
trigger:
|
||||||
|
- master
|
||||||
|
|
||||||
|
pr:
|
||||||
|
autoCancel: true
|
||||||
|
|
||||||
|
# GCC
|
||||||
|
stages:
|
||||||
|
- stage: GCC
|
||||||
|
dependsOn: []
|
||||||
|
variables:
|
||||||
|
- name: CC
|
||||||
|
value: gcc
|
||||||
|
- name: CXX
|
||||||
|
value: g++
|
||||||
|
jobs:
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate GCC latest'
|
||||||
|
imageName: ubuntu-20.04
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate GCC Previous'
|
||||||
|
imageName: ubuntu-18.04
|
||||||
|
|
||||||
|
# Clang
|
||||||
|
- stage: Clang
|
||||||
|
dependsOn: []
|
||||||
|
variables:
|
||||||
|
- name: CC
|
||||||
|
value: clang
|
||||||
|
- name: CXX
|
||||||
|
value: clang++
|
||||||
|
jobs:
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate Clang latest'
|
||||||
|
imageName: ubuntu-20.04
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate Clang Previous'
|
||||||
|
imageName: ubuntu-18.04
|
||||||
|
|
||||||
|
# MSVC
|
||||||
|
- stage: MSVC
|
||||||
|
dependsOn: []
|
||||||
|
jobs:
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate MSVC latest'
|
||||||
|
imageName: windows-latest
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate MSVC Previous'
|
||||||
|
imageName: vs2017-win2016
|
||||||
|
|
||||||
|
# Apple-Clang
|
||||||
|
- stage: Apple_Clang
|
||||||
|
dependsOn: []
|
||||||
|
jobs:
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate Apple-Clang latest'
|
||||||
|
imageName: macos-10.15
|
||||||
|
- template: ./pipelines/jobs.yml
|
||||||
|
parameters:
|
||||||
|
jobName: 'Validate Apple-Clang Previous'
|
||||||
|
imageName: macos-10.14
|
26
pipelines/jobs.yml
Normal file
26
pipelines/jobs.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
parameters:
|
||||||
|
jobName: ''
|
||||||
|
imageName: ''
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job:
|
||||||
|
displayName: ${{ parameters.imageName }}
|
||||||
|
pool:
|
||||||
|
vmImage: ${{ parameters.imageName }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
14_debug:
|
||||||
|
GSL_CXX_STANDARD: '14'
|
||||||
|
BUILD_TYPE: 'Debug'
|
||||||
|
14_release:
|
||||||
|
GSL_CXX_STANDARD: '14'
|
||||||
|
BUILD_TYPE: 'Release'
|
||||||
|
17_debug:
|
||||||
|
GSL_CXX_STANDARD: '17'
|
||||||
|
BUILD_TYPE: 'Debug'
|
||||||
|
17_release:
|
||||||
|
GSL_CXX_STANDARD: '17'
|
||||||
|
BUILD_TYPE: 'Release'
|
||||||
|
continueOnError: false
|
||||||
|
steps:
|
||||||
|
- template: ./steps.yml
|
17
pipelines/steps.yml
Normal file
17
pipelines/steps.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
steps:
|
||||||
|
- task: CMake@1
|
||||||
|
name: Configure
|
||||||
|
inputs:
|
||||||
|
workingDirectory: build
|
||||||
|
cmakeArgs: '-DCMAKE_CXX_STANDARD=$(GSL_CXX_STANDARD) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) .. '
|
||||||
|
|
||||||
|
- task: CMake@1
|
||||||
|
name: Build
|
||||||
|
inputs:
|
||||||
|
workingDirectory: build
|
||||||
|
cmakeArgs: '--build . '
|
||||||
|
|
||||||
|
- script: ctest . --output-on-failure --no-compress-output
|
||||||
|
name: CTest
|
||||||
|
workingDirectory: build
|
||||||
|
failOnStderr: true
|
Loading…
Reference in New Issue
Block a user