diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-05-07 03:36:23 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-05-21 16:11:33 -0400 |
commit | fcfe3c32316ade43b65eeed4337f305f03e0687b (patch) | |
tree | 05e01db2e393a80d1a4a5753c624b6cfacc7c15e /.appveyor.yml | |
parent | 8a9479f8eaab73676ef98c570dfafaff2b5453ec (diff) | |
download | meson-fcfe3c32316ade43b65eeed4337f305f03e0687b.zip meson-fcfe3c32316ade43b65eeed4337f305f03e0687b.tar.gz meson-fcfe3c32316ade43b65eeed4337f305f03e0687b.tar.bz2 |
Use a wrapper script to run tests in Cygwin.
Diffstat (limited to '.appveyor.yml')
-rw-r--r-- | .appveyor.yml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 708e1b1..8ab1931 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -54,26 +54,31 @@ skip_commits: - docs/**/* install: + - cmd: set "ORIG_PATH=%PATH%" # Use the x86 python only when building for x86 for the cpython tests. # For all other archs (including, say, arm), use the x64 python. - ps: (new-object net.webclient).DownloadFile('https://www.dropbox.com/s/bbzvepq85hv47x1/ninja.exe?dl=1', 'C:\projects\meson\ninja.exe') - cmd: if %arch%==x86 (set MESON_PYTHON_PATH=C:\python34) else (set MESON_PYTHON_PATH=C:\python34-x64) - cmd: echo Using Python at %MESON_PYTHON_PATH% + - cmd: if %compiler%==msvc2010 ( call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" %arch% ) - cmd: if %compiler%==msvc2015 ( call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %arch% ) - cmd: if %compiler%==msvc2017 ( call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=%arch% ) + - cmd: if %compiler%==msys2-mingw (if %arch%==x86 (set "PATH=C:\msys64\mingw32\bin;%PATH%") else (set "PATH=C:\msys64\mingw64\bin;%PATH%")) + - cmd: if %compiler%==cygwin ( call ci\appveyor-install.bat ) + - cmd: if not %compiler%==cygwin ( set "PATH=%cd%;%MESON_PYTHON_PATH%;%PATH%;" ) + - cmd: if %compiler%==cygwin ( set WRAPPER=ci\run-in-cygwin.bat ) + - cmd: if %compiler%==cygwin ( set PYTHON=python3 ) else ( set PYTHON=python ) build_script: - cmd: echo No build step. - - cmd: if not %compiler%==cygwin if %backend%==ninja ( ninja.exe --version ) else ( MSBuild /version & echo. ) + - cmd: if %backend%==ninja ( %WRAPPER% ninja.exe --version ) else ( MSBuild /version & echo. ) test_script: - cmd: echo Running tests for %arch% and %compiler% with the %backend% backend - - cmd: set "ORIG_PATH=%PATH%" - - cmd: if %compiler%==cygwin ( set "PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32" && bash -lc "cd $APPVEYOR_BUILD_FOLDER && ci/appveyor-test.sh" ) - - cmd: if not %compiler%==cygwin ( set "PATH=%cd%;%MESON_PYTHON_PATH%;%PATH%;" && python run_tests.py --backend=%backend% ) + - cmd: "%WRAPPER% %PYTHON% run_tests.py --backend=%backend%" on_finish: - set "PATH=%ORIG_PATH%" |