Skip to content

Commit

Permalink
Disable failing cmake jobs on VS2017
Browse files Browse the repository at this point in the history
These only fail when building with msvc/clang-cl on the VS2017-Win2016
image. See: mesonbuild#7307
  • Loading branch information
nirbheek committed Jun 14, 2020
1 parent 6c56478 commit e121942
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- job: vs2017
pool:
vmImage: VS2017-Win2016
variables:
CI_JOB_VS2017: 1

strategy:
matrix:
Expand Down
7 changes: 7 additions & 0 deletions test cases/cmake/2 advanced/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ if not dep_test.found()
error('MESON_SKIP_TEST: zlib is not installed')
endif

py3 = import('python').find_installation('python3')
get_envvar = '''import os, sys; print(os.environ.get('@0@', 0), end='')'''
# Remove this env var from azure-pipelines.yml when fixed
if run_command(py3, '-c', get_envvar.format('CI_JOB_VS2017')).stdout() == '1'
error('MESON_SKIP_TEST: broken for vs2017 jobs')
endif

cm = import('cmake')

# Test the "normal" subproject call
Expand Down
7 changes: 7 additions & 0 deletions test cases/cmake/5 object library/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ if not dep_test.found()
error('MESON_SKIP_TEST: zlib is not installed')
endif

py3 = import('python').find_installation('python3')
get_envvar = '''import os, sys; print(os.environ.get('@0@', 0), end='')'''
# Remove this env var from azure-pipelines.yml when fixed
if run_command(py3, '-c', get_envvar.format('CI_JOB_VS2017')).stdout() == '1'
error('MESON_SKIP_TEST: broken for vs2017 jobs')
endif

cm = import('cmake')

sub_pro = cm.subproject('cmObjLib')
Expand Down

0 comments on commit e121942

Please sign in to comment.