Skip to content

Introduce MSVC CI #6558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 60 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,43 @@ jobs:
- job: CMake
timeoutInMinutes: 120
strategy:
maxParallel: 6
matrix:
Linux.Debug:
image_name: 'ubuntu-latest'
deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
build_type: 'Debug'
test_target: 'check'
do_test: true
libtype_flag: ''
Linux.ReleaseWithDebug:
image_name: 'ubuntu-latest'
deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
build_type: 'RelWithDebInfo'
test_target: 'check'
do_test: true
libtype_flag: ''
Linux.Release:
image_name: 'ubuntu-latest'
deps: 'sudo apt-get install -y ninja-build clang libicu-dev'
build_type: 'Release'
test_target: 'all'
do_test: false
libtype_flag: ''
OSX.Debug:
image_name: 'macOS-latest'
deps: 'brew install ninja icu4c'
build_type: 'Debug'
test_target: 'check'
do_test: true
libtype_flag: '-DSTATIC_LIBRARY=ON'
OSX.ReleaseWithDebug:
image_name: 'macOS-latest'
deps: 'brew install ninja icu4c'
build_type: 'RelWithDebInfo'
test_target: 'check'
do_test: true
libtype_flag: ''
OSX.Release:
image_name: 'macOS-latest'
deps: 'brew install ninja icu4c'
build_type: 'Release'
test_target: 'all'
do_test: false
libtype_flag: ''

pool:
Expand All @@ -65,7 +66,57 @@ jobs:

- script: |
cd build
ninja $TARGET
displayName: 'Build and test'
ninja
displayName: 'Build'

- script: |
cd build
ninja check
displayName: 'Test'
condition: eq(variables['do_test'], true)

- job: MSVC
timeoutInMinutes: 120
pool:
vmImage: 'windows-latest'
strategy:
maxParallel: 4
matrix:
x86.Debug:
build_type: 'debug'
target: 'x86'
do_test: true
x86.Test:
build_type: 'test'
target: 'x86'
do_test: true
x86.Release:
build_type: 'release'
target: 'x86'
do_test: false
x64.Debug:
build_type: 'debug'
target: 'x64'
do_test: true
x64.Test:
build_type: 'test'
target: 'x64'
do_test: true
x64.Release:
build_type: 'release'
target: 'x64'
do_test: false

steps:
- script: jenkins\buildone.cmd %TARGET% %BUILD%
displayName: 'Build'
env:
TARGET: $(target)
BUILD: $(build_type)

- script: jenkins\testone.cmd %TARGET% %BUILD%
displayName: 'Test'
condition: eq(variables['do_test'], true)
env:
TARGET: $(test_target)
TARGET: $(target)
BUILD: $(build_type)