-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
105 lines (99 loc) · 3.82 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: 1.0.0-{build}
environment:
matrix:
# - Platform: LINUX-GCC
# GccVersion: 9
# Configuration: Coverage
# APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
- Platform: TDM-GCC-64
PlatformToolset: 9.2.0
Configuration: Coverage
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# - Platform: LINUX-GCC
# GccVersion: 9
# Configuration: Release
# GenerateInstaller: True
# PublishArtifacts: True
# APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
# - Platform: LINUX-GCC
# GccVersion: 8
# Configuration: Release
# APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
# - Platform: LINUX-GCC
# GccVersion: 7
# Configuration: Release
# APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
- Platform: TDM-GCC-64
PlatformToolset: 9.2.0
Configuration: Release
GenerateInstaller: True
PublishArtifacts: True
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- Platform: MinGW64
PlatformToolset: 8.1.0
Configuration: Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- Platform: MinGW64
PlatformToolset: 7.3.0
Configuration: Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
- Platform: MSVC64
Configuration: Release
GenerateInstaller: True
PublishArtifacts: True
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
# - Platform: MSVC64
# Configuration: Release
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - Platform: MSVC64
# Configuration: Release
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
for:
-
matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
environment:
CPPUTEST_HOME: C:\cpputest-4.0-gdr0
LCOV_HOME: C:\lcov-1.15.alpha1w
CODECOV_FLAG: --flag
cache:
- C:\cpputest-4.0-gdr0 -> appveyor.yml
- C:\Strawberry
- C:\lcov-1.15.alpha1w -> appveyor.yml
- C:\TDM-GCC-64\ -> appveyor.yml
install:
- ps: if (!($env:Test -eq 'False') -and !(Test-Path -Path "$env:CPPUTEST_HOME")) { ci\appveyor_ci_install_cpputest_win.ps1 }
- ps: if ($env:Platform -eq 'TDM-GCC-64' -and !(Test-Path -Path "C:\TDM-GCC-64")) { choco install tdm-gcc-64 --version $env:PlatformToolset -r --no-progress -s ci\ }
- ps: if ($env:Configuration -eq 'Coverage' -and !(Test-Path -Path "C:\Strawberry")) { choco install strawberryperl -r --no-progress }
- ps: if ($env:Configuration -eq 'Coverage' -and !(Test-Path -Path "$env:LCOV_HOME")) { ci\appveyor_ci_install_lcov_win.ps1 }
- ps: if ($env:Configuration -eq 'Coverage') { choco install codecov --version 1.11.2 -r --no-progress }
- cmd: set PATH=C:\Strawberry\perl\bin;%PATH%
-
matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
environment:
CPPUTEST_HOME: /home/appveyor/cpputest-4.0-gdr0
LCOV_HOME: /home/appveyor/lcov-1.15
CODECOV_HOME: /home/appveyor/codecov
CODECOV_FLAG: -F
cache:
- /home/appveyor/cpputest-4.0-gdr0 -> appveyor.yml
- /home/appveyor/lcov-1.15 -> appveyor.yml
install:
- ps: if (!($env:Test -eq 'False') -and !(Test-Path -Path "$env:CPPUTEST_HOME")) { ci/appveyor_ci_install_cpputest_linux.ps1 }
- ps: if ($env:Configuration -eq 'Coverage' -and !(Test-Path -Path "$env:LCOV_HOME")) { ci/appveyor_ci_install_lcov_linux.ps1 }
- ps: if ($env:Configuration -eq 'Coverage') { bash ci/appveyor_ci_install_codecov_linux.sh }
- export PATH=$CODECOV_HOME:$PATH
before_build:
- git submodule update --init --recursive
build_script:
- ps: ci/appveyor_ci_build.ps1
test_script:
- ps: ci/appveyor_ci_test.ps1
after_test:
- ps: ci/appveyor_ci_after_test.ps1
- ps: if ($env:Configuration -eq 'Coverage') { codecov -f build/test/reports/coverage/app_stripped.info $env:CODECOV_FLAG $env:Platform }