-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
58 lines (49 loc) · 1.49 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
environment:
matrix:
#- QTDIR: C:\Qt\5.11\msvc2015
# CMD_VCVARSALL: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86'
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# MSVC_PLATFORM: "x86"
- QTDIR: C:\Qt\5.11\msvc2017_64
CMD_VCVARSALL: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64'
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
MSVC_PLATFORM: "x64"
configuration:
- release
# Get the project submodules
# Set the environment variables and paths to make
install:
- git submodule update --init --recursive
- dir %QTDIR%
- call %CMD_VCVARSALL%
- set PATH=%PATH%;%QTDIR%\bin
# Run qmake
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- cd project
- qmake DSVision.pro
# Build the projects
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- cd project
- nmake
after_build:
- cd %APPVEYOR_BUILD_FOLDER%
- cd project\
- mkdir OurRelease\
- xcopy %APPVEYOR_BUILD_FOLDER%\project\release\DSVision.exe %APPVEYOR_BUILD_FOLDER%\project\OurRelease\
- cd OurRelease\
- windeployqt DSVision.exe
- cd ../../
- 7z a %MSVC_PLATFORM%-release.zip %APPVEYOR_BUILD_FOLDER%\project\OurRelease\*
# just repo root-directory
artifacts:
- path: ./*-release.zip
deploy:
provider: GitHub
auth_token:
secure: tKdWTF1oSK8z1jsJxQI9fwmGKUP+uv8t6XUOaHizEFA9plC7MrRnqrrnZhfEGzLB
artifact: /.*\.zip/
force_update: false
on:
branch: master