-
Notifications
You must be signed in to change notification settings - Fork 40
/
appveyor.yml
80 lines (56 loc) · 1.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
version: 0.0.0.{build}
os: Visual Studio 2015
clone_depth: 1
test: off
clone_folder: C:\projects\longscroll-qt
environment:
matrix:
# MinGW
- platform: mingw
qt: C:\Qt\5.6\mingw49_32
artifactName: longscroll-qt-$(APPVEYOR_REPO_TAG_NAME)-win32-mingw
# MSVC 2015 x64
- platform: amd64
qt: C:\Qt\5.6\msvc2015_64
artifactName: longscroll-qt-$(APPVEYOR_REPO_TAG_NAME)-win64-msvc2015
init:
- set PATH=%qt%\bin;%PATH%
- if not %platform%==mingw call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
- if %platform%==mingw set PATH=C:\Qt\Tools\mingw492_32\bin;%PATH%
install:
- cd "%clone_folder%"
before_build:
- md build
- md build\longscroll
- md build\simple
- md build\demo
build_script:
- cmd: >-
if not %platform%==mingw (set MAKETOOL=nmake) else (set MAKETOOL=mingw32-make)
cd build\longscroll
qmake --version
qmake -r ..\..\src\longscroll-qt.pro "CONFIG+=release" "CONTINUOUS_INTEGRATION=1"
%MAKETOOL%
%MAKETOOL% install
%MAKETOOL% clean
cd ..\simple
qmake -r ..\..\examples\simple\simple.pro "CONFIG+=release" "CONTINUOUS_INTEGRATION=1"
%MAKETOOL%
%MAKETOOL% install
%MAKETOOL% clean
cd ..\demo
qmake -r ..\..\examples\demo\demo.pro "CONFIG+=release" "CONTINUOUS_INTEGRATION=1"
%MAKETOOL%
%MAKETOOL% install
%MAKETOOL% clean
cd ..\..
artifacts:
- path: dist
name: $(artifactName)
deploy:
- provider: GitHub
auth_token:
secure: YgZks6UZDak1zPo6DPuSZbOAJ1+EVIctLu2zperMenMeVfIHnfi5yELyFBCCifTo
artifact: $(artifactName)
on:
appveyor_repo_tag: true