-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathappveyor.yml
104 lines (97 loc) · 3.66 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
version: 0.6.0-{build}
environment:
matrix:
- Platform: LINUX-GCC
GccVersion: 9
Configuration: Release
GenerateInstaller: True
PublishArtifacts: True
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: MSVC64
Configuration: Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- Platform: MSVC64
Configuration: Debug
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- Platform: LINUX-GCC
GccVersion: 8
Configuration: Release
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
- Platform: TDM-GCC-64
PlatformToolset: 9.2.0
Configuration: Coverage
CheckCompilation: True
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- Platform: LINUX-GCC
GccVersion: 9
CheckCompilation: True
Configuration: Coverage
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
for:
-
matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
environment:
CPPUTEST_HOME: C:\cpputest
LCOV_HOME: C:\lcov
CODECOV_FLAG: --flag
cache:
- C:\cpputest -> appveyor.yml
- C:\Strawberry
- C:\lcov -> 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
LCOV_HOME: /home/appveyor/lcov
CODECOV_HOME: /home/appveyor/codecov
CODECOV_FLAG: -F
cache:
- /home/appveyor/cpputest -> appveyor.yml
- /home/appveyor/lcov -> appveyor.yml
install:
- sh: sudo apt-get install libclang-9-dev
- 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 }
deploy:
provider: GitHub
tag: ${APPVEYOR_REPO_TAG_NAME}
release: "Release ${APPVEYOR_REPO_TAG_NAME}"
description: "Release ${APPVEYOR_REPO_TAG_NAME} (commit: ${APPVEYOR_REPO_COMMIT} build number: ${APPVEYOR_BUILD_NUMBER})"
draft: true
prerelease: false
force_update: true
auth_token:
secure: FukMKKhe9zoLYhuIqa66i/s+F5GVepPem6C4mnCVshTVyzs1rmIp0Ef19hq4XS8s
on:
APPVEYOR_REPO_TAG: true
PublishArtifacts: true