From 1210ec763e1935b95a3a909c61998fbd251b7575 Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Sun, 25 Sep 2016 12:02:52 +0200 Subject: apveyor: Wintest project with MINGW/Cygwin git (conda2.7&3.4/cpy-3.5) [travisci skip] --- .appveyor.yml | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .appveyor.yml (limited to '.appveyor.yml') diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..2af0ccdb --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,74 @@ +# CI on Windows via appveyor +environment: + + matrix: + - PYTHON: "C:\\Miniconda" + PYTHON_VERSION: "2.7" + - PYTHON: "C:\\Miniconda" + PYTHON_VERSION: "2.7" + GIT_PATH: "C:\\cygwin64\\bin" + + - PYTHON: "C:\\Miniconda3-x64" + PYTHON_VERSION: "3.4" + - PYTHON: "C:\\Miniconda3-x64" + PYTHON_VERSION: "3.4" + GIT_PATH: "C:\\cygwin64\\bin" + + - PYTHON: "C:\Python35-x64" + PYTHON_VERSION: "3.5" + - PYTHON: "C:\Python35-x64" + PYTHON_VERSION: "3.5" + GIT_PATH: "C:\\cygwin64\\bin" + +install: + - set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH% + + ## Print architecture, python & git used for debugging. + # + - | + uname -a + where git + python --version + python -c "import struct; print(struct.calcsize('P') * 8)" + conda info -a + + - conda install --yes --quiet pip + - pip install nose wheel coveralls + - IF "%PYTHON_VERSION%"=="2.7" ( + pip install mock + ) + + ## Copied from `init-tests-after-clone.sh`. + # + - | + git submodule update --init --recursive + git fetch --tags + git tag __testing_point__ + git checkout master || git checkout -b master + git reset --hard HEAD~1 + git reset --hard HEAD~1 + git reset --hard HEAD~1 + git reset --hard __testing_point__ + + ## For commits performed with the default user. + - | + git config --global user.email "travis@ci.com" + git config --global user.name "Travis Runner" + + - python setup.py develop + +build: off + +test_script: + - | + echo "+++ Checking archives for PyPI repo..." + python setup.py bdist_wheel + + - IF "%PYTHON_VERSION%"=="3.4" ( + nosetests -v --with-coverage + ) ELSE ( + nosetests -v + ) + +#on_success: +# - IF "%PYTHON_VERSION%"=="3.4" (coveralls) -- cgit v1.2.3