From ba7c2a0f81f83c358ae256963da86f907ca7f13c Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Thu, 13 Oct 2016 23:07:14 +0200 Subject: appveyor, #533: enable CYGWIN TCs without failing - Cygwin TCs failing (start, no Cygwin specific code): - PY2: err: 44, fail: 0 - PY3: err: 13, fail: 0 --- .appveyor.yml | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to '.appveyor.yml') diff --git a/.appveyor.yml b/.appveyor.yml index 0e9a9473..1a38d185 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) -- cgit v1.2.3 From 4486bcbbf49ad0eacf2d8229fb0e7e3432f440d9 Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Sat, 15 Oct 2016 14:52:40 +0200 Subject: ci, deps: no PY26, ddt>=1.1.1, CIs `pip install test-requirements` + Use environment-markers in requirement files (see http://stackoverflow.com/a/33451105/548792). --- .appveyor.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '.appveyor.yml') diff --git a/.appveyor.yml b/.appveyor.yml index 1a38d185..0237d2e5 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -51,10 +51,8 @@ install: conda info -a & conda install --yes --quiet pip ) - - pip install nose ddt wheel codecov - - IF "%PYTHON_VERSION%" == "2.7" ( - pip install mock - ) + - pip install -r test-requirements.txt + - pip install codecov ## Copied from `init-tests-after-clone.sh`. # -- cgit v1.2.3 From 5962373da1444d841852970205bff77d5ca9377f Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Sun, 16 Oct 2016 22:02:51 +0200 Subject: cygwin, appveyor, #533: Enable actual failures, hide certain 2+2 cases --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.appveyor.yml') diff --git a/.appveyor.yml b/.appveyor.yml index 0237d2e5..701fc4ac 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -77,7 +77,7 @@ build: false test_script: - IF "%IS_CYGWIN%" == "yes" ( - nosetests -v || echo "Ignoring failures." & EXIT /B 0 + nosetests -v ) ELSE ( IF "%PYTHON_VERSION%" == "3.5" ( nosetests -v --with-coverage -- cgit v1.2.3