Blame view

appveyor.yml 1.95 KB
Lisandro Dalcin committed
1 2
# https://ci.appveyor.com/project/cython/cython

Ali Ebrahim committed
3 4 5 6
environment:

  global:
    # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
Unknown committed
7
    # /E:ON and /V:ON options are not enabled in the batch script interpreter
Ali Ebrahim committed
8
    # See: http://stackoverflow.com/a/13751649/163740
Lisandro Dalcin committed
9
    WITH_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
Ali Ebrahim committed
10 11 12

  matrix:
    - PYTHON: "C:\\Python27"
Stefan Behnel committed
13
      PYTHON_VERSION: "2.7"
Ali Ebrahim committed
14 15
      PYTHON_ARCH: "32"

Stefan Behnel committed
16 17 18 19
    - PYTHON: "C:\\Python27-x64"
      PYTHON_VERSION: "2.7"
      PYTHON_ARCH: "64"

Stefan Behnel committed
20 21 22 23 24 25 26 27
    - PYTHON: "C:\\Python37"
      PYTHON_VERSION: "3.7"
      PYTHON_ARCH: "32"

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

Stefan Behnel committed
28 29
    - PYTHON: "C:\\Python36"
      PYTHON_VERSION: "3.6"
Lisandro Dalcin committed
30 31
      PYTHON_ARCH: "32"

Stefan Behnel committed
32 33
    - PYTHON: "C:\\Python36-x64"
      PYTHON_VERSION: "3.6"
Lisandro Dalcin committed
34 35
      PYTHON_ARCH: "64"

Stefan Behnel committed
36 37 38
    - PYTHON: "C:\\Python35"
      PYTHON_VERSION: "3.5"
      PYTHON_ARCH: "32"
Ali Ebrahim committed
39

Stefan Behnel committed
40 41
    - PYTHON: "C:\\Python35-x64"
      PYTHON_VERSION: "3.5"
Ali Ebrahim committed
42 43
      PYTHON_ARCH: "64"

Stefan Behnel committed
44 45
    - PYTHON: "C:\\Python34"
      PYTHON_VERSION: "3.4"
Stefan Behnel committed
46
      PYTHON_ARCH: "32"
Lisandro Dalcin committed
47

Stefan Behnel committed
48 49
    - PYTHON: "C:\\Python34-x64"
      PYTHON_VERSION: "3.4"
Lisandro Dalcin committed
50
      PYTHON_ARCH: "64"
Ali Ebrahim committed
51

Lisandro Dalcin committed
52 53 54 55 56
clone_depth: 5

branches:
  only:
    - master
Stefan Behnel committed
57
    - release
Lisandro Dalcin committed
58

Ali Ebrahim committed
59
init:
Lisandro Dalcin committed
60
  - "ECHO Python %PYTHON_VERSION% (%PYTHON_ARCH%bit) from %PYTHON%"
Ali Ebrahim committed
61 62 63

install:
  - "powershell appveyor\\install.ps1"
Lisandro Dalcin committed
64 65 66
  - "%PYTHON%\\python.exe --version"
  - "%PYTHON%\\Scripts\\pip.exe --version"
  - "%PYTHON%\\Scripts\\wheel.exe version"
Ali Ebrahim committed
67 68

build: off
Lisandro Dalcin committed
69
build_script:
Stefan Behnel committed
70
  - "%WITH_ENV% %PYTHON%\\python.exe setup.py build_ext --inplace"
Lisandro Dalcin committed
71
  - "%WITH_ENV% %PYTHON%\\python.exe setup.py bdist_wheel"
Ali Ebrahim committed
72

Lisandro Dalcin committed
73
test: off
Ali Ebrahim committed
74
test_script:
Stefan Behnel committed
75
  - "%PYTHON%\\Scripts\\pip.exe install -r test-requirements.txt"
Stefan Behnel committed
76
  - "set CFLAGS=/Od"
Stefan Behnel committed
77
  - "%WITH_ENV% %PYTHON%\\python.exe runtests.py -vv --no-cpp -j5"
Ali Ebrahim committed
78 79 80 81

artifacts:
  - path: dist\*

Lisandro Dalcin committed
82 83 84
cache:
  - C:\Downloads\Cython -> appveyor\install.ps1

Ali Ebrahim committed
85 86
#on_success:
#  - TODO: upload the content of dist/*.whl to a public wheelhouse