diff --git a/appveyor.yml b/appveyor.yml index d4438932bd3b8e9d09c80c1af837b65c17a492f5..2a3becf44ae130b7a00b6ee24d1bb76ddbbdbf11 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,10 +1,10 @@ version: '{build}' -init: -- cmd: git clone -q --branch=master https://github.com/Itseez/opencv.git "%APPVEYOR_BUILD_FOLDER%\opencv -clone_script: -- cmd: + 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 @@ -15,51 +15,35 @@ install: C:\Python35-64\Scripts\pip.exe install -r requirements.txt + build_script: - cmd: >- - if not exist "%APPVEYOR_BUILD_FOLDER%\build" mkdir "%APPVEYOR_BUILD_FOLDER%\build" + if not exist "%APPVEYOR_BUILD_FOLDER%\build" mkdir "%APPVEYOR_BUILD_FOLDER%\build" if not exist "%APPVEYOR_BUILD_FOLDER%\build64" mkdir "%APPVEYOR_BUILD_FOLDER%\build64" - cmake -G "Visual Studio 14" -H"%APPVEYOR_BUILD_FOLDER%\opencv" -B"%APPVEYOR_BUILD_FOLDER%\opencv\build" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -Wno-dev - - cmake --build build --config Release - cmake -G "Visual Studio 14 Win64" -H"%APPVEYOR_BUILD_FOLDER%\opencv" -B"%APPVEYOR_BUILD_FOLDER%\opencv\build64" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -Wno-dev - - cmake --build build64 --config Release - xcopy "%APPVEYOR_BUILD_FOLDER%\build\lib\RELEASE\*.pyd" cv2 - C:\Python27\python.exe setup.py bdist_wheel --opencv-version 0.0.0 - del cv2\*.pyd - xcopy "%APPVEYOR_BUILD_FOLDER%\build64\lib\RELEASE\*.pyd" cv2 - C:\Python27-64\python.exe setup.py bdist_wheel --opencv-version 0.0.0 - del cv2\*.pyd - xcopy "%APPVEYOR_BUILD_FOLDER%\build\lib\python3\Release\*.pyd" cv2 - C:\Python35\python.exe python setup.py bdist_wheel --opencv-version 0.0.0 - del cv2\*.pyd - xcopy "%APPVEYOR_BUILD_FOLDER%\build64\lib\python3\Release\*.pyd" cv2 - C:\Python35-64\python.exe python setup.py bdist_wheel --opencv-version 0.0.0 - del cv2\*.pyd + artifacts: - path: dist\*.whl name: wheels