Skip to content

Commit

Permalink
appveyor, #525: enable CYGWIN TCs without failing
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Oct 13, 2016
1 parent 90d6903 commit 01751aa
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 01751aa

Please sign in to comment.