-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathconfig.yml
78 lines (71 loc) · 1.92 KB
/
config.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
# Copyright 2020-2021 Chris Morgan <[email protected]>
# SPDX-License-Identifier: MIT
version: 2.1
orbs:
win: circleci/[email protected]
commands:
report:
steps:
- store_test_results:
path: Test/TestResults
- store_artifacts:
path: Test/TestResults
jobs:
test-windows:
executor:
name: win/default
steps:
- checkout
- run: ./scripts/install-windows.ps1
- run: dotnet build -c Release
- run: bash scripts/test.sh --filter "TestCategory=WinDivert"
- report
test-ubuntu:
parameters:
libpcap:
description: How to install libpcap
type: string
machine:
image: ubuntu-2004:202201-02
steps:
- checkout
- run: sudo -E bash scripts/install-tap.sh
# Download and compile latest libpcap
- when:
condition: { equal: [ libpcap-script, << parameters.libpcap >> ] }
steps:
- run: sudo -E bash scripts/install-libpcap.sh
# Install libpcap from apt-get
- when:
condition: {not: { equal: [ libpcap-script, << parameters.libpcap >> ] } }
steps:
- run: sudo apt-get install << parameters.libpcap >>
- run: sudo -E bash scripts/test.sh
- run:
when: always
command: sudo chmod -R +r Test/TestResults
- report
test-arm:
machine:
image: ubuntu-2004:202101-01
resource_class: arm.medium
steps:
- checkout
- run: sudo -E bash scripts/install-tap.sh
- run: sudo apt-get install libpcap0.8
- run: sudo -E bash scripts/test.sh
- run:
when: always
command: sudo chmod -R +r Test/TestResults
- report
workflows:
version: 2
build:
jobs:
- test-windows
- test-arm
- test-ubuntu:
name: << matrix.libpcap >>
matrix:
parameters:
libpcap: [ "libpcap-script", "libpcap-dev", "libpcap0.8" ]