@@ -5,121 +5,81 @@ environment:
55 PASS :
66 secure : HHNjmjxQSvgSY9Zde0qh6A==
77
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+
834install :
935- cmd : >-
1036
1137 git submodule update --init --recursive
1238
1339 C:\Python35\python.exe find_version.py
1440
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
2442
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
3044
3145build_script :
3246- cmd : |-
3347
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%"
3749
3850 cd opencv
3951
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%
5156
5257 cmake --build . --config Release
5358
5459 cd ..\..
5560 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
6161
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
6465
65- rmdir "%APPVEYOR_BUILD_FOLDER%\build" /s /q
66+ dir
6667
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
9769
9870before_test :
9971- cmd : >-
10072
10173 cd ..
10274
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
11076
11177test_script :
11278- cmd : >-
11379
11480 cd %APPVEYOR_BUILD_FOLDER%\tests
11581
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
12383
12484artifacts :
12585- path : dist\*.whl
0 commit comments