forked from pencil2d/pencil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor-msvc.yml
90 lines (76 loc) · 2.45 KB
/
appveyor-msvc.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
81
82
83
84
85
86
87
88
89
90
clone_depth: 3
image:
- Visual Studio 2019
- Visual Studio 2017
- Visual Studio 2015
- Visual Studio 2013
platform:
- x86
- x64
skip_commits:
files:
- '*.md'
- docs/*
- util/appveyor-mingw.yml
init:
- ver
- echo %PLATFORM%
before_build:
- set QTDIR=C:\Qt\%qt%
- set PATH=%PATH%;%QTDIR%\bin
- qmake --version
build_script:
- cd
- md build
- cd build
- qmake "..\pencil2d.pro" CONFIG =GIT CONFIG =Release CONFIG =PENCIL2D_NIGHTLY
- nmake
after_build:
- windeployqt "%APPVEYOR_BUILD_FOLDER%\build\app\release\pencil2d.exe"
test_script:
- echo "Running tests"
- tests\release\tests.exe
for:
- matrix:
only:
- image: Visual Studio 2019
install:
- if %PLATFORM%==x86 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
- if %PLATFORM%==x64 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- if %PLATFORM%==x86 set qt=5.15\msvc2019
- if %PLATFORM%==x64 set qt=5.15\msvc2019_64
- matrix:
only:
- image: Visual Studio 2017
install:
- if %PLATFORM%==x86 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- if %PLATFORM%==x64 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- if %PLATFORM%==x86 set qt=5.12\msvc2017
- if %PLATFORM%==x64 set qt=5.12\msvc2017_64
- matrix:
only:
- image: Visual Studio 2015
install:
- if %PLATFORM%==x86 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- if %PLATFORM%==x64 call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if %PLATFORM%==x64 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
- if %PLATFORM%==x86 set qt=5.9\msvc2015
- if %PLATFORM%==x64 set qt=5.9\msvc2015_64
- matrix:
only:
- image: Visual Studio 2013
install:
- if %PLATFORM%==x86 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
- if %PLATFORM%==x86 set qt=5.6\msvc2013
build_script:
- md build
- cd build
# with an additional flag NO_TESTS
- qmake "..\pencil2d.pro" CONFIG =GIT CONFIG =Release CONFIG =PENCIL2D_NIGHTLY CONFIG =NO_TESTS
- nmake
test_script:
- echo "No tests for VS2013"
matrix:
exclude:
- image: Visual Studio 2013
platform: x64