appveyor.yml 2.7 KB
Newer Older
Lisandro Dalcin's avatar
Lisandro Dalcin committed
1 2
# https://ci.appveyor.com/project/cython/cython

3 4 5 6
environment:

  global:
    # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
Unknown's avatar
Unknown committed
7
    # /E:ON and /V:ON options are not enabled in the batch script interpreter
8
    # See: https://stackoverflow.com/questions/11267463/compiling-python-modules-on-windows-x64/13751649#13751649
Lisandro Dalcin's avatar
Lisandro Dalcin committed
9
    WITH_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
10
    BACKEND: c
11
    PARALLEL: "-j4"
12 13 14

  matrix:
    - PYTHON: "C:\\Python27"
15
      PYTHON_VERSION: "2.7"
16
      PYTHON_ARCH: "32"
17
      PYTHONIOENCODING: "utf-8"
18
      PARALLEL: ""
19

20 21 22
    - PYTHON: "C:\\Python27-x64"
      PYTHON_VERSION: "2.7"
      PYTHON_ARCH: "64"
23
      PYTHONIOENCODING: "utf-8"
24
      PARALLEL: ""
25

26 27 28 29 30 31 32 33
    - PYTHON: "C:\\Python38"
      PYTHON_VERSION: "3.8"
      PYTHON_ARCH: "32"

    - PYTHON: "C:\\Python38-x64"
      PYTHON_VERSION: "3.8"
      PYTHON_ARCH: "64"

34 35 36 37 38 39 40 41
    - PYTHON: "C:\\Python37"
      PYTHON_VERSION: "3.7"
      PYTHON_ARCH: "32"

    - PYTHON: "C:\\Python37-x64"
      PYTHON_VERSION: "3.7"
      PYTHON_ARCH: "64"

42 43 44 45 46
    - PYTHON: "C:\\Python37-x64"
      PYTHON_VERSION: "3.7"
      PYTHON_ARCH: "64"
      BACKEND: cpp

47 48
    - PYTHON: "C:\\Python36"
      PYTHON_VERSION: "3.6"
Lisandro Dalcin's avatar
Lisandro Dalcin committed
49 50
      PYTHON_ARCH: "32"

51 52
    - PYTHON: "C:\\Python36-x64"
      PYTHON_VERSION: "3.6"
53 54
      PYTHON_ARCH: "64"

55 56 57
    - PYTHON: "C:\\Python35"
      PYTHON_VERSION: "3.5"
      PYTHON_ARCH: "32"
58

59 60
    - PYTHON: "C:\\Python35-x64"
      PYTHON_VERSION: "3.5"
61 62
      PYTHON_ARCH: "64"

63 64
    - PYTHON: "C:\\Python34"
      PYTHON_VERSION: "3.4"
65
      PYTHON_ARCH: "32"
66
      PARALLEL: ""
Lisandro Dalcin's avatar
Lisandro Dalcin committed
67

68 69
    - PYTHON: "C:\\Python34-x64"
      PYTHON_VERSION: "3.4"
Lisandro Dalcin's avatar
Lisandro Dalcin committed
70
      PYTHON_ARCH: "64"
71
      PARALLEL: ""
72

73 74 75 76
    - PYTHON: "C:\\Python27-x64"
      PYTHON_VERSION: "2.7"
      PYTHON_ARCH: "64"
      BACKEND: cpp
77
      PYTHONIOENCODING: "utf-8"
78
      PARALLEL: ""
79

80 81 82 83 84
clone_depth: 5

branches:
  only:
    - master
85
    - release
86

87
init:
Lisandro Dalcin's avatar
Lisandro Dalcin committed
88
  - "ECHO Python %PYTHON_VERSION% (%PYTHON_ARCH%bit) from %PYTHON%"
89 90 91

install:
  - "powershell appveyor\\install.ps1"
92 93 94
  - "%PYTHON%\\python.exe --version"
  - "%PYTHON%\\Scripts\\pip.exe --version"
  - "%PYTHON%\\Scripts\\wheel.exe version"
95 96

build: off
97
build_script:
98
  - "%WITH_ENV% %PYTHON%\\python.exe setup.py build_ext --inplace %PARALLEL%"
99
  - "%WITH_ENV% %PYTHON%\\python.exe setup.py bdist_wheel"
100

101
test: off
102
test_script:
103
  - "%PYTHON%\\Scripts\\pip.exe install -r test-requirements.txt"
104
  - "%PYTHON%\\Scripts\\pip.exe install win_unicode_console"
105
  - "set CFLAGS=/Od /W3"
106
  - "%WITH_ENV% %PYTHON%\\python.exe runtests.py -vv --backend=%BACKEND% --no-code-style -j5"
107 108 109 110

artifacts:
  - path: dist\*

111 112 113
cache:
  - C:\Downloads\Cython -> appveyor\install.ps1

114 115
#on_success:
#  - TODO: upload the content of dist/*.whl to a public wheelhouse