-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.appveyor.yml
66 lines (57 loc) · 2.57 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
version: '{branch}-{build}'
environment:
matrix:
- QTDIR: C:\Qt\5.6\mingw49_32
- QTDIR: C:\Qt\5.6\msvc2013
- QTDIR: C:\Qt\5.6\msvc2013_64
- QTDIR: C:\Qt\5.6\msvc2015
- QTDIR: C:\Qt\5.6\msvc2015_64
- QTDIR: C:\Qt\5.7\mingw53_32
- QTDIR: C:\Qt\5.7\msvc2015
- QTDIR: C:\Qt\5.9\mingw53_32
- QTDIR: C:\Qt\5.9\msvc2013_64
- QTDIR: C:\Qt\5.9\msvc2015
- QTDIR: C:\Qt\5.9\msvc2015_64
- QTDIR: C:\Qt\5.10\mingw53_32
- QTDIR: C:\Qt\5.10\msvc2013_64
- QTDIR: C:\Qt\5.10\msvc2015
- QTDIR: C:\Qt\5.10\msvc2015_64
- QTDIR: C:\Qt\5.11\mingw53_32
- QTDIR: C:\Qt\5.11\msvc2015
- QTDIR: C:\Qt\5.11\msvc2015_64
- QTDIR: C:\Qt\5.12\mingw73_32
- QTDIR: C:\Qt\5.12\mingw73_64
- QTDIR: C:\Qt\5.12\msvc2015_64
- QTDIR: C:\Qt\5.13\mingw73_32
- QTDIR: C:\Qt\5.13\mingw73_64
- QTDIR: C:\Qt\5.13\msvc2015_64
install:
#- C:\cygwin\bin\find C:\Qt -maxdepth 2 -type d
- '%QTDIR%\bin\qtenv2.bat'
- if %QTDIR:_64=%==%QTDIR% ( set MSVC_ARCH=x86 ) else set MSVC_ARCH=x64
- if not %QTDIR:msvc2013=%==%QTDIR% call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %MSVC_ARCH%
- if not %QTDIR:msvc2015=%==%QTDIR% call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %MSVC_ARCH%
- if not %QTDIR:mingw=%==%QTDIR% set CMAKE_GENERATOR="MinGW Makefiles"
- if not %QTDIR:msvc=%==%QTDIR% set CMAKE_GENERATOR="NMake Makefiles"
before_build:
# Remove git's sh.exe from the path, as it conflicts with CMake's MinGW generator (until 3.17)
- if %QTDIR:msvc=%==%QTDIR% set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- cmake -E make_directory %APPVEYOR_BUILD_FOLDER%-build
- cmake -G %CMAKE_GENERATOR% -S %APPVEYOR_BUILD_FOLDER% -B %APPVEYOR_BUILD_FOLDER%-build
build_script:
# @todo Just targetting a subset of libs for now, to save AppVeyor resources.
- cmake --build %APPVEYOR_BUILD_FOLDER%-build --target QtAwsAcm QtAwsCore QtAwsS3 QtAwsS3Control QtAwsXRay
after_build:
# Add a link to the build output within the source directory. This is needed because AppVeyor does
# not support extracting artifacts from out-of-source build directories. See 'artifacts' below.
# @todo build artifacts are all different now...
#- mklink %APPVEYOR_BUILD_FOLDER%\qtaws.dll %APPVEYOR_BUILD_FOLDER%-build\%CONFIGURATION%\qtaws.dll
test_script:
# @todo output using Qt's -xunitxml option
#- if not %CONFIGURATION%==debug %make% check TESTARGS=-silent
# @todo after_test upload results
#artifacts:
# - path: qtaws.dll
#notifications:
# - provider: Webhook
# url: https://webhooks.gitter.im/e/db2b6ec088084f138e57