summaryrefslogtreecommitdiff
path: root/.appveyor.yml
blob: 7863d6d52c9389a0f050c48846043c1d0bcfddb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# CI on Windows via appveyor
environment:

    matrix:
      - PYTHON: "C:\\Python27"
        PYTHON_VERSION: "2.7"
        GIT_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core"
      - PYTHON: "C:\\Miniconda"
        PYTHON_VERSION: "2.7"
        IS_CONDA: "yes"
        GIT_PATH: "C:\\cygwin\\bin"

      - PYTHON: "C:\\Miniconda3-x64"
        PYTHON_VERSION: "3.4"
        IS_CONDA: "yes"
        GIT_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core"
      - PYTHON: "C:\\Python34"
        PYTHON_VERSION: "3.4"
        GIT_PATH: "C:\\cygwin64\\bin"

      - PYTHON: "C:\\Python35-x64"
        PYTHON_VERSION: "3.5"
        GIT_PATH: "C:\\Program Files\\Git\\mingw64\\libexec\\git-core"
      - 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 git-daemon python pip
        python --version
        python -c "import struct; print(struct.calcsize('P') * 8)"

    - IF "%IS_CONDA%"=="yes" (
        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: false

test_script:
    - nosetests -v

#on_success:
#    - IF "%PYTHON_VERSION%"=="3.4" (coveralls)