forked from caproto/caproto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
78 lines (66 loc) · 2.43 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
# vi: ts=2 sw=2 sts=2 expandtab
skip_tags: true
os: Visual Studio 2017
# Shallow clone of repo
clone_depth: 2
platform:
- x86
- x64
cache:
- C:\projects\epics-base-3.15
environment:
# 192.168.0.0/21 -> 192.168.7.255 broadcast
# EPICS_CA_AUTO_ADDR_LIST: NO
# EPICS_CA_ADDR_LIST: 192.168.7.255
# EPICS_CAS_AUTO_ADDR_LIST: NO
# EPICS_CAS_INTF_ADDR_LIST: 192.168.7.255
RUN_TEST: coverage run run_tests.py -v --benchmark-disable --timeout=50
matrix:
- PYTHON: "C:\\Python36"
EPICS_VER: 3.15
TOOLCHAIN: 2017
CONFIGURATION: STATIC
- PYTHON: "C:\\Python36-x64"
EPICS_VER: 3.15
TOOLCHAIN: 2017
CONFIGURATION: STATIC
init:
# command-line scripts for windows
- git config --global core.autocrlf true
build_script:
- cmd: git --no-pager log -n2
# Build epics-base in C:\projects\epics-base-VER
- cmd: set EPICS_BASE=C:\Projects\epics-base-%EPICS_VER%
- ps: |
$epics_base="C:\projects\epics-base-3.15\"
$release_path="$epics_base\configure\RELEASE"
if (!(Test-Path -Path $release_path)) {
git clone --single-branch --branch=3.15 --depth=2 https://github.com/epics-base/epics-base $epics_base
Push-Location $epics_base
ci/appveyor-prepare.bat
ci/appveyor-make.bat
Pop-Location
}
- cmd: dir /s /b %EPICS_BASE%\dbd %EPICS_BASE%\bin
- cmd: echo %APPVEYOR_REPO_COMMIT%
- cmd: SET PATH=%EPICS_BASE%\bin\win32-x86-static;%EPICS_BASE%\bin\windows-x64-static;%PYTHON%;%PYTHON%\Scripts;;%PATH%
- cmd: python --version"
- cmd: python -c "import struct; print(struct.calcsize('P') * 8)"
- cmd: pip install .
- cmd: pip install -Ur test-requirements.txt
- cmd: pip install codecov
- cmd: ipconfig /all
test_script:
# Not sure why this setting isn't working above
# - cmd: set EPICS_CA_AUTO_ADDR_LIST=NO
# - cmd: %RUN_TEST% caproto/tests/test_bench.py
- "%RUN_TEST% caproto/tests/test_cli_scripts.py
caproto/tests/test_core.py caproto/tests/test_create_many_channels.py
caproto/tests/test_data_conversion.py caproto/tests/test_dbr_types.py
caproto/tests/test_examples.py caproto/tests/test_fixtures.py
caproto/tests/test_nonet.py caproto/tests/test_pyepics_compat.py
caproto/tests/test_repeater.py caproto/tests/test_serialization.py
caproto/tests/test_server.py caproto/tests/test_status.py
caproto/tests/test_threading_client.py caproto/tests/test_utils.py"
- coverage combine
- coverage report -m