appveyor.yml 4.1 KB
Newer Older
1
environment:
2 3 4 5
  USER:
    secure: fXgF9uyy6sT0JoVOR7BoqA==

  PASS:
6
    secure: HHNjmjxQSvgSY9Zde0qh6A==
7

J
Jon Winsley 已提交
8 9 10 11 12
  matrix:
    - PYTHON: "C:/Python27"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "2.7"
13
      NP_VERSION: "1.11.1"
14
      ENABLE_CONTRIB: 0
15

J
Jon Winsley 已提交
16 17 18 19
    - PYTHON: "C:/Python27-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "2.7"
20
      NP_VERSION: "1.11.1"
21
      ENABLE_CONTRIB: 0
22

J
Jon Winsley 已提交
23 24 25 26
    - PYTHON: "C:/Python34"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "3.4"
27
      NP_VERSION: "1.11.1"
28
      ENABLE_CONTRIB: 0
29

J
Jon Winsley 已提交
30 31 32 33
    - PYTHON: "C:/Python34-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "3.4"
34
      NP_VERSION: "1.11.1"
35
      ENABLE_CONTRIB: 0
36

J
Jon Winsley 已提交
37 38 39 40
    - PYTHON: "C:/Python35"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "3.5"
41
      NP_VERSION: "1.11.1"
42
      ENABLE_CONTRIB: 0
43

J
Jon Winsley 已提交
44 45 46 47
    - PYTHON: "C:/Python35-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "3.5"
48
      NP_VERSION: "1.11.1"
49
      ENABLE_CONTRIB: 0
50

51 52 53 54
    - PYTHON: "C:/Python36"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "3.6"
55
      NP_VERSION: "1.11.3"
56
      ENABLE_CONTRIB: 0
57

58 59 60 61
    - PYTHON: "C:/Python36-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "3.6"
62
      NP_VERSION: "1.11.3"
63
      ENABLE_CONTRIB: 0
J
Jon Winsley 已提交
64

65 66 67 68
    - PYTHON: "C:/Python27"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "2.7"
69
      NP_VERSION: "1.11.1"
70
      ENABLE_CONTRIB: 1
71

72 73 74 75
    - PYTHON: "C:/Python27-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "2.7"
76
      NP_VERSION: "1.11.1"
77
      ENABLE_CONTRIB: 1
78

79 80 81 82
    - PYTHON: "C:/Python34"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "3.4"
83
      NP_VERSION: "1.11.1"
84
      ENABLE_CONTRIB: 1
85

86 87 88 89
    - PYTHON: "C:/Python34-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "3.4"
90
      NP_VERSION: "1.11.1"
91
      ENABLE_CONTRIB: 1
92

93 94 95 96
    - PYTHON: "C:/Python35"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "3.5"
97
      NP_VERSION: "1.11.1"
98
      ENABLE_CONTRIB: 1
99

100 101 102 103
    - PYTHON: "C:/Python35-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "3.5"
104
      NP_VERSION: "1.11.1"
105
      ENABLE_CONTRIB: 1
O
Olli-Pekka Heinisuo 已提交
106

107 108 109 110
    - PYTHON: "C:/Python36"
      BUILD_ENV: "Visual Studio 14"
      BUILD_DIR: "build"
      PYTHON_VERSION: "3.6"
111
      NP_VERSION: "1.11.3"
112
      ENABLE_CONTRIB: 1
113

114 115 116 117
    - PYTHON: "C:/Python36-x64"
      BUILD_ENV: "Visual Studio 14 Win64"
      BUILD_DIR: "build64"
      PYTHON_VERSION: "3.6"
118
      NP_VERSION: "1.11.3"
119
      ENABLE_CONTRIB: 1
120

S
skvark 已提交
121
install:
O
Olli-Pekka Heinisuo 已提交
122
- cmd: >-
123

124
    git submodule update --init --recursive
125 126 127

    C:\Python35\python.exe find_version.py

J
Jon Winsley 已提交
128
    "%PYTHON%/python.exe" -m pip install --upgrade pip
129

J
Jon Winsley 已提交
130
    "%PYTHON%/python.exe" -m pip install -r requirements.txt
131

132
    "%PYTHON%/python.exe" -m pip install "numpy==%NP_VERSION%"
S
skvark 已提交
133 134

build_script:
135
- appveyor\build.cmd
136

O
Olli-Pekka Heinisuo 已提交
137 138 139
before_test:
- cmd: >-

O
Olli-Pekka Heinisuo 已提交
140 141
    cd ..

142
    if %ENABLE_CONTRIB% EQU 0 ("%PYTHON%/python.exe" -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-python) else ("%PYTHON%/python.exe" -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-contrib-python)
143

S
skvark 已提交
144 145
artifacts:
- path: dist\*.whl
O
Olli-Pekka Heinisuo 已提交
146
  name: wheels
147 148

deploy_script:
149
- cd %APPVEYOR_BUILD_FOLDER%
150 151 152 153

- if %ENABLE_CONTRIB% EQU 0 (echo "This is default build. Deplyoment will be done to to PyPI entry opencv-python.") else (echo "This is contrib build. Deplyoment will be done to to PyPI entry opencv-contrib-python.")

- if "%APPVEYOR_REPO_TAG%"=="true" ("%PYTHON%/python.exe" -m twine upload -u %USER% -p %PASS% --skip-existing dist/opencv*) else (echo "Tag not set, deployment skipped.")