forked from live-keys/livekeys
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
60 lines (51 loc) · 1.41 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
os: unstable
image: Visual Studio 2015
platform:
- x64
environment:
matrix:
- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.0"
PYTHON_ARCH: "64"
install:
- choco install opencv -version 4.1.1
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%\vc14
- SET QTDIR=C:\Qt\5.11\msvc2015_64
- dir C:\Qt
- dir C:\Qt\5.7
- dir C:\Qt\5.11
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"."
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- mv live-pm-master/* .
- python --version
- pip install -r requirements.txt
- python livepm/main.py build .. msvc2015_64
- python livepm/main.py deploy .. msvc2015_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