forked from opencv/opencv-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (36 loc) · 1.52 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
environment:
USER:
secure: fXgF9uyy6sT0JoVOR7BoqA==
PASS:
secure: HHNjmjxQSvgSY9Zde0qh6A==
matrix:
- PYTHON: "C:/Python36-x64"
BUILD_ENV: "Visual Studio 14 Win64"
BUILD_DIR: "build64"
PYTHON_VERSION: "3.6"
NP_VERSION: "1.11.3"
ENABLE_CONTRIB: 0
install:
- cmd: >-
git submodule update --init --recursive
C:\Python35\python.exe find_version.py
"%PYTHON%/python.exe" -m pip install --upgrade pip
"%PYTHON%/python.exe" -m pip install -r requirements.txt
"%PYTHON%/python.exe" -m pip install "numpy==%NP_VERSION%"
build_script:
- appveyor\build.cmd
before_test:
- cmd: >-
cd ..
if %ENABLE_CONTRIB% EQU 0 ("%PYTHON%/python.exe" -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-python) else ("%PYTHON%/python.exe" -m pip install --no-index --find-links=%APPVEYOR_BUILD_FOLDER%\dist\ opencv-contrib-python)
test_script:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%\tests
"%PYTHON%/python.exe" -m unittest test
artifacts:
- path: dist\*.whl
name: wheels
deploy_script:
- cd %APPVEYOR_BUILD_FOLDER%
- if %ENABLE_CONTRIB% EQU 0 (echo "This is default build. Deplyoment will be done to to PyPI entry opencv-python.") else (echo "This is contrib build. Deplyoment will be done to to PyPI entry opencv-contrib-python.")
- if "%APPVEYOR_REPO_TAG%"=="true" ("%PYTHON%/python.exe" -m twine upload -u %USER% -p %PASS% --skip-existing dist/opencv*) else (echo "Tag not set, deployment skipped.")