Skip to content

Commit

Permalink
appveyor, #533: enable CYGWIN TCs without failing
Browse files Browse the repository at this point in the history
- Cygwin TCs failing (start, no Cygwin specific code):
  - PY2: err: 44, fail: 0
  - PY3: err: 13, fail: 0
  • Loading branch information
ankostis committed Oct 14, 2016
1 parent e12ef59 commit ba7c2a0
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
)

Expand All @@ -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)

0 comments on commit ba7c2a0

Please sign in to comment.