-
Notifications
You must be signed in to change notification settings - Fork 31
/
.appveyor.yml
105 lines (83 loc) · 3.16 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
# .appveyor.yml for use with EPICS Base ci-scripts
# (see: https://github.com/epics-base/ci-scripts)
cache:
- C:\Users\appveyor\.tools
init:
# Set autocrlf to make batch files work
- git config --global core.autocrlf true
clone_depth: 50
#---------------------------------#
# build matrix configuration #
#---------------------------------#
image: Visual Studio 2015
# Build Configurations: dll/static, regular/debug
configuration:
- dynamic
- static
- dynamic-debug
- static-debug
# Environment variables: compiler toolchain
environment:
SETUP_PATH: .ci-local:.ci
_PVXS_ABORT_ON_CRIT: 1
PVXS_LOG: pvxs.*=WARN
matrix:
- CMP: vs2022
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
PATH: C:\Python311-x64;%PATH%
BASE: R7.0.7
- CMP: vs2019
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
PATH: C:\Python37-x64;%PATH%
BASE: R7.0.7
- CMP: vs2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PATH: C:\Python35-x64;%PATH%
BASE: R7.0.7
- CMP: vs2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PATH: C:\Python35-x64;%PATH%
BASE: R7.0.7
- CMP: gcc
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PATH: C:\Python35-x64;%PATH%
BASE: R7.0.7
# Platform: architecture
platform:
- x64
#---------------------------------#
# building & testing #
#---------------------------------#
install:
- cmd: python -m pip install git+https://github.com/mdavidsaver/ci-core-dumper#egg=ci-core-dumper
- cmd: git submodule update --init --recursive
- cmd: python .ci/cue.py prepare
- cmd: python .ci/cue.py exec python .ci-local/libevent.py
build_script:
- cmd: python .ci/cue.py build
before_test:
- cmd: python -m ci_core_dumper -v install
test_script:
- cmd: reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug"
- cmd: reg query "HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug"
- cmd: python .ci/cue.py --add-path "{TOP}\bin\{EPICS_HOST_ARCH}" --add-path "{TOP}\bundle\usr\{EPICS_HOST_ARCH}\lib" exec pvxinfo -D
- cmd: python -m ci_core_dumper exec python .ci/cue.py --add-path "{TOP}\bundle\usr\{EPICS_HOST_ARCH}\lib" test
on_failure:
- cmd: python -m ci_core_dumper -v report
on_finish:
- ps: Get-ChildItem *.tap -Recurse -Force | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- cmd: python .ci/cue.py test-results
#---------------------------------#
# debugging #
#---------------------------------#
## if you want to connect by remote desktop to a failed build, uncomment these lines
## note that you will need to connect within the usual build timeout limit (60 minutes)
## so you may want to adjust the build matrix above to just build the one of interest
#on_failure:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
- provider: GitHubPullRequest