@@ -5,121 +5,81 @@ environment:
5
5
PASS :
6
6
secure : HHNjmjxQSvgSY9Zde0qh6A==
7
7
8
+ matrix :
9
+ - PYTHON : " C:/Python27"
10
+ BUILD_ENV : " Visual Studio 14"
11
+ BUILD_DIR : " build"
12
+ PYTHON_VERSION : " 2.7"
13
+ - PYTHON : " C:/Python27-x64"
14
+ BUILD_ENV : " Visual Studio 14 Win64"
15
+ BUILD_DIR : " build64"
16
+ PYTHON_VERSION : " 2.7"
17
+ - PYTHON : " C:/Python34"
18
+ BUILD_ENV : " Visual Studio 14"
19
+ BUILD_DIR : " build"
20
+ PYTHON_VERSION : " 3.4"
21
+ - PYTHON : " C:/Python34-x64"
22
+ BUILD_ENV : " Visual Studio 14 Win64"
23
+ BUILD_DIR : " build64"
24
+ PYTHON_VERSION : " 3.4"
25
+ - PYTHON : " C:/Python35"
26
+ BUILD_ENV : " Visual Studio 14"
27
+ BUILD_DIR : " build"
28
+ PYTHON_VERSION : " 3.5"
29
+ - PYTHON : " C:/Python35-x64"
30
+ BUILD_ENV : " Visual Studio 14 Win64"
31
+ BUILD_DIR : " build64"
32
+ PYTHON_VERSION : " 3.5"
33
+
8
34
install :
9
35
- cmd : >-
10
36
11
37
git submodule update --init --recursive
12
38
13
39
C:\Python35\python.exe find_version.py
14
40
15
- C:\Python27\python.exe -m pip install --upgrade pip
16
-
17
- C:\Python27\python.exe -m pip install -r requirements.txt
18
-
19
- C:\Python35\python.exe -m pip install --upgrade pip
20
-
21
- C:\Python35\python.exe -m pip install -r requirements.txt
22
-
23
- C:\Python27-x64\python.exe -m pip install --upgrade pip
41
+ "%PYTHON%/python.exe" -m pip install --upgrade pip
24
42
25
- C:\Python27-x64\python.exe -m pip install -r requirements.txt
26
-
27
- C:\Python35-x64\python.exe -m pip install --upgrade pip
28
-
29
- C:\Python35-x64\python.exe -m pip install -r requirements.txt
43
+ "%PYTHON%/python.exe" -m pip install -r requirements.txt
30
44
31
45
build_script :
32
46
- cmd : |-
33
47
34
- if not exist "%APPVEYOR_BUILD_FOLDER%\opencv\build" mkdir "%APPVEYOR_BUILD_FOLDER%\opencv\build"
35
-
36
- if not exist "%APPVEYOR_BUILD_FOLDER%\opencv\build64" mkdir "%APPVEYOR_BUILD_FOLDER%\opencv\build64"
48
+ if not exist "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%" mkdir "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%"
37
49
38
50
cd opencv
39
51
40
- cmake -G "Visual Studio 14" -H"." -B"build" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DPYTHON3_EXECUTABLE=C:/Python35/python.exe -DPYTHON3_LIBRARY=C:/Python35/libs/python35.lib -DPYTHON3_INCLUDE_DIR=C:/Python35/include -Wno-dev
41
-
42
- cd build
43
-
44
- cmake --build . --config Release
45
-
46
- cd ..
47
-
48
- cmake -G "Visual Studio 14 Win64" -H"." -B"build64" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DPYTHON3_EXECUTABLE=C:/Python35-x64/python.exe -DPYTHON3_LIBRARY=C:/Python35-x64/libs/python35.lib -DPYTHON3_INCLUDE_DIR=C:/Python35-x64/include -Wno-dev
49
-
50
- cd build64
52
+ if %PYTHON_VERSION% GEQ 3 cmake -G "%BUILD_ENV%" -H"." -B"%BUILD_DIR%" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DPYTHON3_EXECUTABLE="%PYTHON%/python.exe" -DPYTHON3_LIBRARY="%PYTHON%/libs/python3*.lib" -DPYTHON3_INCLUDE_DIR="%PYTHON%/include" -Wno-dev
53
+ if %PYTHON_VERSION% LSS 3 cmake -G "%BUILD_ENV%" -H"." -B"%BUILD_DIR%" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -Wno-dev
54
+
55
+ cd %BUILD_DIR%
51
56
52
57
cmake --build . --config Release
53
58
54
59
cd ..\..
55
60
cd
56
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\lib\RELEASE\*.pyd" cv2
57
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\bin\Release\*.dll" cv2
58
- del cv2\*64.dll
59
-
60
- C:\Python27\python.exe setup.py bdist_wheel
61
61
62
- del cv2\*.pyd
63
- del cv2\*.dll
62
+ if %PYTHON_VERSION% GEQ 3 xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\lib\python3\Release\*.pyd" .\cv2 /I
63
+ if %PYTHON_VERSION% LSS 3 xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\lib\RELEASE\*.pyd" .\cv2 /I
64
+ xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\bin\Release\*.dll" .\cv2 /I
64
65
65
- rmdir "%APPVEYOR_BUILD_FOLDER%\build" /s /q
66
+ dir
66
67
67
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\lib\RELEASE\*.pyd" cv2
68
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\bin\Release\*64.dll" cv2
69
-
70
- C:\Python27-x64\python.exe setup.py bdist_wheel
71
-
72
- del cv2\*.pyd
73
- del cv2\*.dll
74
-
75
- rmdir "%APPVEYOR_BUILD_FOLDER%\build" /s /q
76
-
77
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\lib\python3\Release\*.pyd" cv2
78
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\bin\Release\*.dll" cv2
79
- del cv2\*64.dll
80
-
81
- C:\Python35\python.exe setup.py bdist_wheel
82
-
83
- del cv2\*.pyd
84
- del cv2\*.dll
85
-
86
- rmdir "%APPVEYOR_BUILD_FOLDER%\build" /s /q
87
-
88
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\lib\python3\Release\*.pyd" cv2
89
- xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\bin\Release\*64.dll" cv2
90
-
91
- C:\Python35-x64\python.exe setup.py bdist_wheel
92
-
93
- del cv2\*.pyd
94
- del cv2\*.dll
95
-
96
- rmdir "%APPVEYOR_BUILD_FOLDER%\build" /s /q
68
+ "%PYTHON%/python.exe" setup.py bdist_wheel
97
69
98
70
before_test :
99
71
- cmd : >-
100
72
101
73
cd ..
102
74
103
- C:\Python27\python.exe -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-python
104
-
105
- C:\Python27-x64\python.exe -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-python
106
-
107
- C:\Python35\python.exe -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-python
108
-
109
- C:\Python35-x64\python.exe -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-python
75
+ "%PYTHON%/python.exe" -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-python
110
76
111
77
test_script :
112
78
- cmd : >-
113
79
114
80
cd %APPVEYOR_BUILD_FOLDER%\tests
115
81
116
- C:\Python27\python.exe -m unittest test
117
-
118
- C:\Python27-x64\python.exe -m unittest test
119
-
120
- C:\Python35\python.exe -m unittest test
121
-
122
- C:\Python35-x64\python.exe -m unittest test
82
+ "%PYTHON%/python.exe" -m unittest test
123
83
124
84
artifacts :
125
85
- path : dist\*.whl
0 commit comments