|
| 1 | +# CI on Windows via appveyor |
| 2 | +environment: |
| 3 | + GIT_DAEMON_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core" |
| 4 | + CYGWIN_GIT_PATH: "C:\\cygwin\\bin;%GIT_DAEMON_PATH%" |
| 5 | + CYGWIN64_GIT_PATH: "C:\\cygwin64\\bin;%GIT_DAEMON_PATH%" |
| 6 | + |
| 7 | + matrix: |
| 8 | + ## MINGW |
| 9 | + # |
| 10 | + - PYTHON: "C:\\Python27" |
| 11 | + PYTHON_VERSION: "2.7" |
| 12 | + GIT_PATH: "%GIT_DAEMON_PATH%" |
| 13 | + - PYTHON: "C:\\Python34-x64" |
| 14 | + PYTHON_VERSION: "3.4" |
| 15 | + GIT_PATH: "%GIT_DAEMON_PATH%" |
| 16 | + - PYTHON: "C:\\Python35-x64" |
| 17 | + PYTHON_VERSION: "3.5" |
| 18 | + GIT_PATH: "%GIT_DAEMON_PATH%" |
| 19 | + - PYTHON: "C:\\Miniconda35-x64" |
| 20 | + PYTHON_VERSION: "3.5" |
| 21 | + IS_CONDA: "yes" |
| 22 | + GIT_PATH: "%GIT_DAEMON_PATH%" |
| 23 | + |
| 24 | + # ## Cygwin |
| 25 | + # # |
| 26 | + # - PYTHON: "C:\\Miniconda-x64" |
| 27 | + # PYTHON_VERSION: "2.7" |
| 28 | + # IS_CONDA: "yes" |
| 29 | + # GIT_PATH: "%CYGWIN_GIT_PATH%" |
| 30 | + # - PYTHON: "C:\\Python34-x64" |
| 31 | + # PYTHON_VERSION: "3.4" |
| 32 | + # GIT_PATH: "%CYGWIN_GIT_PATH%" |
| 33 | + # - PYTHON: "C:\\Python35-x64" |
| 34 | + # PYTHON_VERSION: "3.5" |
| 35 | + # GIT_PATH: "%CYGWIN64_GIT_PATH%" |
| 36 | + |
| 37 | + |
| 38 | +install: |
| 39 | + - set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH% |
| 40 | + |
| 41 | + ## Print configuration for debugging. |
| 42 | + # |
| 43 | + - | |
| 44 | + echo %PATH% |
| 45 | + uname -a |
| 46 | + where git git-daemon python pip pip3 pip34 |
| 47 | + python --version |
| 48 | + python -c "import struct; print(struct.calcsize('P') * 8)" |
| 49 | +
|
| 50 | + - IF "%IS_CONDA%"=="yes" ( |
| 51 | + conda info -a & |
| 52 | + conda install --yes --quiet pip |
| 53 | + ) |
| 54 | + - pip install nose ddt wheel coveralls |
| 55 | + - IF "%PYTHON_VERSION%"=="2.7" ( |
| 56 | + pip install mock |
| 57 | + ) |
| 58 | + |
| 59 | + ## Copied from `init-tests-after-clone.sh`. |
| 60 | + # |
| 61 | + - | |
| 62 | + git submodule update --init --recursive |
| 63 | + git fetch --tags |
| 64 | + git tag __testing_point__ |
| 65 | + git checkout master || git checkout -b master |
| 66 | + git reset --hard HEAD~1 |
| 67 | + git reset --hard HEAD~1 |
| 68 | + git reset --hard HEAD~1 |
| 69 | + git reset --hard __testing_point__ |
| 70 | +
|
| 71 | + ## For commits performed with the default user. |
| 72 | + - | |
| 73 | + git config --global user.email "travis@ci.com" |
| 74 | + git config --global user.name "Travis Runner" |
| 75 | +
|
| 76 | + - pip install -e . |
| 77 | + |
| 78 | +build: false |
| 79 | + |
| 80 | +test_script: |
| 81 | + - nosetests -v --with-coverage |
| 82 | + |
| 83 | +#on_success: |
| 84 | +# - IF "%PYTHON_VERSION%"=="3.4" (coveralls) |
0 commit comments