-
Notifications
You must be signed in to change notification settings - Fork 86
/
appveyor.yml
67 lines (60 loc) · 1.98 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
56
57
58
59
60
61
62
63
64
65
66
67
os: unstable
image: Visual Studio 2019
platform:
- x64
environment:
matrix:
- PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8.0"
PYTHON_ARCH: "64"
install:
- choco install opencv -version 4.1.1
- appveyor DownloadFile https://doxygen.nl/files/doxygen-1.9.1.windows.x64.bin.zip
- 7z x doxygen-1.9.1.windows.x64.bin.zip -oc:\projects\install\doxygen > nul
- set PATH=c:\projects\install\doxygen;%PATH%
before_build:
- SET ARCH=x64
- SET APP_PATH=%CD%
- IF EXIST C:\tools\OpenCV* CD C:\tools*
- SET OPENCV_ROOT_PATH=%CD%\opencv
- CD %APP_PATH%
- SET OPENCV_DIR=%OPENCV_ROOT_PATH%\build\%ARCH%\vc15
- SET QTDIR=C:\Qt\5.14.2\msvc2017_64
- SET VS142COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools
build_script:
- cd build
- echo %OPENCV_DIR%
- echo %QTDIR%
- ps: $file = "$pwd\deploy.zip"
- ps: (new-object System.Net.WebClient).Downloadfile("https://github.com/livecv/live-pm/archive/master.zip", $file)
- ps: 7z x -y $file -o"."
- ps: $file2 = "$pwd\deploy2.zip"
- ps: (new-object System.Net.WebClient).Downloadfile("https://github.com/livecv/live-doc/archive/master.zip", $file2)
- ps: 7z x -y $file2 -o"."
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- mv live-pm-master/* .
- python --version
- pip install -r requirements.txt
- cd live-doc-master
- npm install
- npm audit fix
- SET LIVEDOC=%APPVEYOR_BUILD_FOLDER%\build\live-doc-master\live-doc.js
- cd ..
- python livepm/main.py build .. msvc2019_64
- python livepm/main.py deploy .. msvc2019_64
- dir
artifacts:
- path: 'build\livekeys-*.zip'
name: Release
deploy:
release: $(APPVEYOR_REPO_TAG_NAME)
description: 'View Changelog.md for further details.'
provider: GitHub
auth_token:
secure: 'nZiQSOpQIcQKzofe3beUTU1qJxW9WLtZaCLfIdF2Aoa5Nfp2o1x923dfHZfiEaYN'
artifact: /.*\.zip/
draft: true
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true