From 01751aa75a304d7035db0ac7256e94efb01e2abd Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Thu, 13 Oct 2016 23:07:14 +0200 Subject: [PATCH] appveyor, #525: enable CYGWIN TCs without failing --- .appveyor.yml | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 0e9a94732..1a38d1856 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -21,18 +21,17 @@ environment: IS_CONDA: "yes" GIT_PATH: "%GIT_DAEMON_PATH%" - # ## Cygwin - # # - # - PYTHON: "C:\\Miniconda-x64" - # PYTHON_VERSION: "2.7" - # IS_CONDA: "yes" - # GIT_PATH: "%CYGWIN_GIT_PATH%" - # - PYTHON: "C:\\Python34-x64" - # PYTHON_VERSION: "3.4" - # GIT_PATH: "%CYGWIN_GIT_PATH%" - # - PYTHON: "C:\\Python35-x64" - # PYTHON_VERSION: "3.5" - # GIT_PATH: "%CYGWIN64_GIT_PATH%" + ## Cygwin + # + - PYTHON: "C:\\Miniconda-x64" + PYTHON_VERSION: "2.7" + IS_CONDA: "yes" + IS_CYGWIN: "yes" + GIT_PATH: "%CYGWIN_GIT_PATH%" + - PYTHON: "C:\\Python35-x64" + PYTHON_VERSION: "3.5" + GIT_PATH: "%CYGWIN64_GIT_PATH%" + IS_CYGWIN: "yes" install: @@ -48,12 +47,12 @@ install: python --version python -c "import struct; print(struct.calcsize('P') * 8)" - - IF "%IS_CONDA%"=="yes" ( + - IF "%IS_CONDA%" == "yes" ( conda info -a & conda install --yes --quiet pip ) - pip install nose ddt wheel codecov - - IF "%PYTHON_VERSION%"=="2.7" ( + - IF "%PYTHON_VERSION%" == "2.7" ( pip install mock ) @@ -79,7 +78,15 @@ install: build: false test_script: - - IF "%PYTHON_VERSION%"=="3.5" (nosetests -v --with-coverage) ELSE (nosetests -v) + - IF "%IS_CYGWIN%" == "yes" ( + nosetests -v || echo "Ignoring failures." & EXIT /B 0 + ) ELSE ( + IF "%PYTHON_VERSION%" == "3.5" ( + nosetests -v --with-coverage + ) ELSE ( + nosetests -v + ) + ) on_success: - - IF "%PYTHON_VERSION%"=="3.5" (codecov) + - IF "%PYTHON_VERSION%" == "3.5" IF NOT "%IS_CYGWIN%" == "yes" (codecov)