-
Notifications
You must be signed in to change notification settings - Fork 11
/
.cirrus.yml
52 lines (52 loc) · 1.62 KB
/
.cirrus.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
# https://cirrus-ci.com/github/burghardt/clamfs
test_task:
name: FreeBSD test run
freebsd_instance:
matrix:
image_family: freebsd-15-0-snap
image_family: freebsd-14-1
image_family: freebsd-13-4
env:
CIRRUS_CLONE_DEPTH: 10
matrix:
CLAMFS_SCAN_MODE: fname
CLAMFS_SCAN_MODE: fdpass
CLAMFS_SCAN_MODE: stream
pkginstall_script:
- pkg install -y devel/autoconf devel/automake devel/pkgconf
- pkg install -y sysutils/fusefs-libs3 devel/poco devel/boost-libs
- pkg install -y security/clamav-lts
configure_script:
- sed -i bak -e 's|-Werror ||g' configure.ac
- sh bootstrap
- ./configure || { tail -n 500 config.log; false; }
compile_script:
- make
install_script:
- make install
configure_clamfs_script:
- mkdir -p /clamfs/tmp
- sed 's/clamd.ctl/clamd.sock/g' doc/clamfs.xml | sed "s/fdpass/$CLAMFS_SCAN_MODE/g" > /clamfs/tmp.xml
dump_clamfs_config_script:
- cat /clamfs/tmp.xml
freshclam_script:
- freshclam
start_clamd_script:
- service clamav_freshclam onestart || service clamav-freshclam onestart
- service clamav_clamd onestart || service clamav-clamd onestart
load_fuse_script:
- kldload fusefs || kldload fuse
start_clamfs_script:
- clamfs /clamfs/tmp.xml
test_empty_script:
- cd /clamfs/tmp
- touch empty.file
- cat empty.file
test_string_script:
- cd /clamfs/tmp
- echo 'Hello World!' > string.txt
- cat string.txt
test_eicar_script:
- cd /clamfs/tmp
- echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > eicar.com
- hexdump -C eicar.com || exit 0