summaryrefslogtreecommitdiff
path: root/.appveyor.yml
blob: 2658d96e5dd4ba1fd5341deb3832355c8fe302fe (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# CI on Windows via appveyor
environment:
    GIT_DAEMON_PATH:   "C:\\Program Files\\Git\\mingw64\\libexec\\git-core"
    CYGWIN_GIT_PATH:   "C:\\cygwin\\bin;%GIT_DAEMON_PATH%"
    CYGWIN64_GIT_PATH: "C:\\cygwin64\\bin;%GIT_DAEMON_PATH%"

    matrix:
      - PYTHON: "C:\\Python34-x64"
        PYTHON_VERSION: "3.4"
        GIT_PATH: "%GIT_DAEMON_PATH%"
      - PYTHON: "C:\\Python35-x64"
        PYTHON_VERSION: "3.5"
        GIT_PATH: "%GIT_DAEMON_PATH%"
      - PYTHON: "C:\\Python36-x64"
        PYTHON_VERSION: "3.6"
        GIT_PATH: "%GIT_DAEMON_PATH%"
      - PYTHON: "C:\\Python37-x64"
        PYTHON_VERSION: "3.7"
        GIT_PATH: "%GIT_DAEMON_PATH%"
      - PYTHON: "C:\\Miniconda35-x64"
        PYTHON_VERSION: "3.5"
        IS_CONDA: "yes"
        MAYFAIL: "yes"
        GIT_PATH: "%GIT_DAEMON_PATH%"
        ## Cygwin
      - PYTHON: "C:\\Python35-x64"
        PYTHON_VERSION: "3.5"
        IS_CYGWIN: "yes"
        MAYFAIL: "yes"
        GIT_PATH: "%CYGWIN64_GIT_PATH%"

matrix:
    allow_failures:
        - MAYFAIL: "yes"
install:
    - set PATH=%PYTHON%;%PYTHON%\Scripts;%GIT_PATH%;%PATH%

    ## Print configuration for debugging.
    #
    - |
        echo %PATH%
        uname -a
        git --version
        where git git-daemon python pip pip3 pip34 sh
        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 -r requirements.txt
    - pip install -r test-requirements.txt
    - pip install codecov

    ## 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"

    - pip install -e .

build: false

test_script:
    -   IF "%IS_CYGWIN%" == "yes" (
            nosetests -v
        ) ELSE (
            IF "%PYTHON_VERSION%" == "3.5" (
                nosetests -v --with-coverage
            ) ELSE (
                nosetests -v
            )
        )

on_success:
    - IF "%PYTHON_VERSION%" == "3.5" IF NOT "%IS_CYGWIN%" == "yes" (codecov)

# Enable this to be able to login to the build worker. You can use the
# `remmina` program in Ubuntu, use the login information that the line below
# prints into the log.
#on_finish:
#    - |
#        echo "Running on_finish to establish connection back to the instance"
#    - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))