File: appveyor.yml

package info (click to toggle)
grantlee5 5.1.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,152 kB
  • sloc: cpp: 24,299; python: 413; sh: 108; ruby: 24; makefile: 20
file content (103 lines) | stat: -rw-r--r-- 3,761 bytes parent folder | download | duplicates (2)
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
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '{build}'

branches:
  only:
    - master
    - next
shallow_clone: true
clone_depth: 1

init:
  - git config --global core.autocrlf input

clone_folder: c:\dev\grantlee

environment:
  matrix:
  - CMAKE_GENERATOR: "Ninja"
    QT5: C:\Qt\5.5\msvc2013
    PLATFORM: X86
    VSVER: 12
  - CMAKE_GENERATOR: "Ninja"
    QT5: C:\Qt\5.5\msvc2013_64
    PLATFORM: X64
    VSVER: 12
  - CMAKE_GENERATOR: "Ninja"
    QT5: C:\Qt\5.6\msvc2015
    PLATFORM: X86
    VSVER: 14
  - CMAKE_GENERATOR: "Ninja"
    QT5: C:\Qt\5.6\msvc2015_64
    PLATFORM: X64
    VSVER: 14
  - CMAKE_GENERATOR: "Visual Studio 12"
    QT5: C:\Qt\5.5\msvc2013
    PLATFORM: X86
    VSVER: 12
  - CMAKE_GENERATOR: "Visual Studio 12 Win64"
    QT5: C:\Qt\5.5\msvc2013_64
    PLATFORM: X64
    VSVER: 12
  - CMAKE_GENERATOR: "Visual Studio 14"
    QT5: C:\Qt\5.6\msvc2015
    PLATFORM: X86
    VSVER: 14
  - CMAKE_GENERATOR: "Visual Studio 14 Win64"
    QT5: C:\Qt\5.6\msvc2015_64
    PLATFORM: X64
    VSVER: 14
  - CMAKE_GENERATOR: "NMake Makefiles JOM"
    QT5: C:\Qt\5.5\msvc2013
    PLATFORM: X86
    VSVER: 12
  - CMAKE_GENERATOR: "NMake Makefiles JOM"
    QT5: C:\Qt\5.5\msvc2013_64
    PLATFORM: X64
    VSVER: 12
  - CMAKE_GENERATOR: "NMake Makefiles JOM"
    QT5: C:\Qt\5.6\msvc2015
    PLATFORM: X86
    VSVER: 14
  - CMAKE_GENERATOR: "NMake Makefiles JOM"
    QT5: C:\Qt\5.6\msvc2015_64
    PLATFORM: X64
    VSVER: 14
  - CMAKE_GENERATOR: "MinGW Makefiles"
    QT5: C:\Qt\5.5\mingw492_32
    MINGW_PATH: C:\Qt\Tools\mingw492_32
  - CMAKE_GENERATOR: "MinGW Makefiles"
    QT5: C:\Qt\5.6\mingw49_32
    MINGW_PATH: C:\Qt\Tools\mingw492_32

before_build:
  - set PATH=C:\cygwin\bin;%QT5%\bin;c:\dev\grantlee\build\templates\lib;c:\dev\grantlee\build\textdocument\lib;%PATH%
  - sed -i "s|std::equal(b, e, lb)|std::equal(b, e,\n#if defined(Q_CC_MSVC)\nstdext::make_unchecked_array_iterator(lb)\n#else\nlb\n#endif\n)|" %QT5%\include\QtCore\qlist.h
  - set PATH=%PATH:C:\cygwin\bin;=%
  - if "%CMAKE_GENERATOR%" == "MinGW Makefiles" set PATH=%MINGW_PATH%\bin;%PATH:C:\Program Files\Git\usr\bin;=%
  - if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
  - if "%CMAKE_GENERATOR%" == "Ninja" cinst ninja
  - if "%CMAKE_GENERATOR%" == "Ninja" set PATH=C:\tools\ninja;%PATH%
  #- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

build:

build_script:
  - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
  - if NOT "%CMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
  - if "%CMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
  - if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
  - if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
  - if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
  - if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
  - if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
  - if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
  - cd c:\dev\grantlee
  - md build
  - cd build
  - cmake .. -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%"
  - cmake --build . --config Debug
  - cmake --build . --config Release

test_script:
  - cmd: ctest --output-on-failure -C "Debug"
  - cmd: ctest --output-on-failure -C "Release"