/
Alx89
/
OpenCV-Python
Обзор
Документация
Войти
/
Alx89
/
OpenCV-Python
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
56
appveyor.yml
201 строка
5 KB
Olli-Pekka Heinisuo
another fix for slashes
01 ноя 2020, 20:12
01 ноя 2020, 20:12
6f8c817
Код
Авторство
О чём код?
environment: USER: secure: fXgF9uyy6sT0JoVOR7BoqA== PASS: secure: 0bXSOVjf9x8L7nErTivu92TF1FwNosTjFJQPmxp8Dys= matrix: - PYTHON: "C:\\Python36" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python36-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python37" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python37-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python38" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python38-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python39" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python39-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python36" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python36-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python37" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python37-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python38" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python38-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python39" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python39-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 0 - PYTHON: "C:\\Python36" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python36-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python37" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python37-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python38" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python38-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python39" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python39-x64" ENABLE_CONTRIB: 0 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python36" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python36-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python37" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python37-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python38" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python38-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python39" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 - PYTHON: "C:\\Python39-x64" ENABLE_CONTRIB: 1 ENABLE_HEADLESS: 1 matrix: fast_finish: true install: - ps: | if (-not (Test-Path $env:PYTHON)) { curl -o install_python.ps1 https://raw.githubusercontent.com/matthew-brett/multibuild/devel/install_python.ps1 .\install_python.ps1 } - ps: if (-not (Test-Path $env:PYTHON)) { throw "No $env:PYTHON" } - "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - python --version build_script: - cmd: | "%PYTHON%\\python.exe" -m pip install --upgrade pip "%PYTHON%\\python.exe" -m pip install --upgrade setuptools set "CI_BUILD=1" && "%PYTHON%\\python.exe" -m pip wheel --wheel-dir=%cd%\dist . --verbose before_test: - ps: | cd ${Env:APPVEYOR_BUILD_FOLDER}\tests $env:PYTHONWARNINGS = "ignore:::pip._internal.cli.base_command" &"${Env:PYTHON}\\python.exe" -m pip install --user --no-warn-script-location (ls "../dist/opencv_*.whl") if ($LastExitCode -ne 0) {throw $LastExitCode} test_script: - cmd: | cd %APPVEYOR_BUILD_FOLDER%\tests "%PYTHON%\\python.exe" -m unittest test artifacts: - path: dist\opencv*.whl name: wheels deploy_script: - ps: | if (${Env:APPVEYOR_REPO_TAG} -eq "true") { cd ${Env:APPVEYOR_BUILD_FOLDER} if (${Env:ENABLE_CONTRIB} -eq 0) { if (${Env:ENABLE_HEADLESS} -eq 0) { echo "This is a default build. Deployment will be done to PyPI entry opencv-python." } else { echo "This is a headless build. Deployment will be done to PyPI entry opencv-python-headless." } } else { if (${Env:ENABLE_HEADLESS} -eq 0) { echo "This is a contrib build. Deployment will be done to PyPI entry opencv-contrib-python." } else { echo "This is a headless contrib build. Deployment will be done to PyPI entry opencv-contrib-python-headless." } } &"${Env:PYTHON}\\python.exe" -m pip install twine &"${Env:PYTHON}\\python.exe" -m twine upload -u ${Env:USER} -p ${Env:PASS} --skip-existing dist/opencv* } else { echo "Tag not set, deployment skipped." }