-
-
Notifications
You must be signed in to change notification settings - Fork 118
/
.travis.yml
89 lines (88 loc) · 3.36 KB
/
.travis.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
###################
# This is property of eXtremeSHOK.com
# You are free to use, modify and distribute, however you may not remove this notice.
# Copyright (c) Adrian Jon Kriel :: [email protected]
# License: BSD (Berkeley Software Distribution)
##################
matrix:
include:
#### MARKDOWN-LINT
- language: node_js
os: linux
dist: focal
before_install:
- nvm install 14.6.0
- nvm use 14.6.0
install:
- npm install --global markdownlint-cli
script:
- markdownlint *.md
#### SHELLCHECK
- language: shell
os: linux
dist: focal
install:
- sudo apt-get install -y shellcheck -qq
script:
- sudo sh -e .t/ci-shellcheck.sh
#### LOGIC AND CLAMAV TESTING : UBUNTU LINUX
- language: shell
os: linux
dist: focal
# Required travis ci environment variables
#ci_malwareexpert_serial_key=[secure]
#ci_securiteinfo_authorisation_signature=[secure]
#ci_malwarepatrol_receipt_code=[secure]
#ci_malwarepatrol_product_code=[secure]
#ci_malwarepatrol_list=[secure]
#ci_malwarepatrol_free=[secure]
#ci_codeclimate_repo_token=[secure]
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y ca-certificates curl wget rsync p7zip-full -qq
- sudo apt-get install -y clamav-base clamav-freshclam clamav clamav-daemon -qq
install:
- sudo mkdir -p /etc/clamav-unofficial-sigs
- sudo cp -f config/master.conf /etc/clamav-unofficial-sigs/master.conf
- sudo cp -f config/os/os.ubuntu.conf /etc/clamav-unofficial-sigs/os.conf
- sudo cp -f clamav-unofficial-sigs.sh /usr/sbin/clamav-unofficial-sigs
script:
- sudo sh -e .t/ci-clamav-download-default-databases.sh
#- sudo sh -e .t/ci-clamav-download-default-databases-git.sh
- sudo sh -e .t/ci-clamav-install-ubuntu-databases.sh
- sudo cp -f .t/tests/user.conf /etc/clamav-unofficial-sigs/user.conf
- sudo sh -e .t/ci-test-ubuntu.sh
addons:
code_climate:
repo_token: $ci_codeclimate_repo_token
#### LOGIC AND CLAMAV TESTING : macOS / OSX
- os: osx
osx_image: xcode12
before_cache:
- brew cleanup
cache:
directories:
- $HOME/Library/Caches/Homebrew
# addons:
# homebrew:
# packages:
# - gnu-tar
# - gnu-sed
# - clamav
before_install:
- homebrew update
- homebrew install gnu-tar gnu-sed clamav
install:
- sudo mkdir -p /usr/local/bin
- sudo mkdir -p /usr/local/etc/clamav-unofficial-sigs
- sudo cp -f clamav-unofficial-sigs.sh /usr/local/bin/clamav-unofficial-sigs.sh
- sudo chmod 755 /usr/local/bin/clamav-unofficial-sigs.sh
- sudo cp -f config/master.conf /usr/local/etc/clamav-unofficial-sigs/master.conf
- sudo cp -f config/os/os.macos.conf /usr/local/etc/clamav-unofficial-sigs/os.conf
script:
- sudo sh -e .t/ci-clamav-download-default-databases.sh
#- sudo sh -e .t/ci-clamav-download-default-databases-git.sh
- sudo sh -e .t/ci-clamav-install-macos-clamav.sh
- sudo sh -e .t/ci-clamav-install-macos-databases.sh
- sudo cp -f .t/tests/user.conf /usr/local/etc/clamav-unofficial-sigs/user.conf
- sudo sh -e .t/ci-test-macos.sh