version: '{build}' install: - cmd: >- git clone -q --branch=master https://github.com/Itseez/opencv.git "%APPVEYOR_BUILD_FOLDER%\opencv C:\Python27\Scripts\pip.exe install -r requirements.txt C:\Python35\Scripts\pip.exe install -r requirements.txt C:\Python27-x64\Scripts\pip.exe install -r requirements.txt C:\Python35-x64\Scripts\pip.exe install -r requirements.txt build_script: - cmd: >- if not exist "%APPVEYOR_BUILD_FOLDER%\opencv\build" mkdir "%APPVEYOR_BUILD_FOLDER%\opencv\build" if not exist "%APPVEYOR_BUILD_FOLDER%\opencv\build64" mkdir "%APPVEYOR_BUILD_FOLDER%\opencv\build64" cd opencv 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 cd build cmake --build . --config Release cd .. 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 cd build64 cmake --build . --config Release cd ..\.. xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\lib\RELEASE\*.pyd" cv2 C:\Python27\python.exe setup.py bdist_wheel del cv2\*.pyd xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\lib\RELEASE\*.pyd" cv2 C:\Python27-x64\python.exe setup.py bdist_wheel del cv2\*.pyd xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build\lib\python3\Release\*.pyd" cv2 C:\Python35\python.exe setup.py bdist_wheel del cv2\*.pyd xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\build64\lib\python3\Release\*.pyd" cv2 C:\Python35-x64\python.exe setup.py bdist_wheel del cv2\*.pyd before_test: - cmd: >- C:\Python27\Scripts\pip.exe install --no-index --find-links=dist\ opencv-python C:\Python27-x64\Scripts\pip.exe install --no-index --find-links=dist\ opencv-python C:\Python35\Scripts\pip.exe install --no-index --find-links=dist\ opencv-python C:\Python35-x64\Scripts\pip.exe install --no-index --find-links=dist\ opencv-python test_script: - cmd: >- C:\Python27\python.exe -m unittest tests C:\Python27-x64\python.exe -m unittest tests C:\Python35\python.exe -m unittest tests C:\Python35-x64\python.exe -m unittest tests artifacts: - path: dist\*.whl name: wheels