-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
50 lines (44 loc) · 1.65 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
version: '{branch}-0.0.{build}'
skip_tags: true
image: Visual Studio 2017
environment:
matrix:
- qt: 5.12.1
build: 64
qt_target: msvc2017_64
# - qt: 5.11.1
# build: 64
# qt_target: winrt_armv7_msvc2017
# - qt: 5.12.1
# build: 32
# qt_target: winrt_x86_msvc2017
# - qt: 5.12.1
# build: 64
# qt_target: winrt_x64_msvc2017
install:
- set QTDIR=C:\Qt\%qt%\%qt_target%
- set PATH=%PATH%;%QTDIR%\bin
before_build:
- git config --global user.email "[email protected]"
- git config --global user.name "Michael Pollind"
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%build%.bat"
- git submodule update --init --recursive
- mkdir build
- cd build
- cmake DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=C:\\Qt\\%qt%\\%qt_target%\\lib\\cmake -DCPACK_PACKAGE_VERSION=%appveyor_build_version% -G "CodeBlocks - NMake Makefiles" %APPVEYOR_BUILD_FOLDER%
build_script:
- cmake --build %APPVEYOR_BUILD_FOLDER%\\build --target SMART
- cd %APPVEYOR_BUILD_FOLDER%\\build
- cpack -D CPACK_GENERATOR="ZIP;NSIS" --verbose
artifacts:
- path: '**\*\_CPack_Packages\**\*\ZIP\*.zip'
name: smart %APPVEYOR_REPO_BRANCH% %qt% %qt_target% %appveyor_build_version% binary
- path: '**\*\_CPack_Packages\**\*\NSIS\*.exe'
name: smart %APPVEYOR_REPO_BRANCH% %qt% %qt_target% %appveyor_build_version% installer
on_failure:
- appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\\build\\_CPack_Packages\\win64\\NSIS\\NSISOutput.log
deploy:
- provider: GitHub
auth_token:
secure: cfQYapw1kaToQWhkDuAZI7Q6VUBCDmRqm/+eziQ8yJoekJXgT3l8JBAflzCtpLVe
repository: GaitRehabilitation/SMART