forked from VirusTotal/yara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (110 loc) · 4.42 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
language: c
matrix:
include:
# Build for 64-bit Linux without profiling enabled
- os: linux
dist: focal
sudo: required
env: CONFIGFLAGS="CFLAGS=-m64 --enable-cuckoo --enable-magic --enable-pb-tests --enable-address-sanitizer"
# The certificate for scan.coverity.com is too new and is not recognized by
# wget. This command adds the certificate to /etc/ssl/certs/ca-certificates.crt
# See: https://github.com/travis-ci/travis-ci/issues/6142
before_install: echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
install: |
sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
libtool \
libjansson-dev \
libmagic-dev \
libssl-dev \
protobuf-compiler \
protobuf-c-compiler \
libprotobuf-c-dev
# Build for 64-bit Linux with profiling enabled
- os: linux
dist: focal
sudo: required
env: CONFIGFLAGS="CFLAGS=-m64 --enable-cuckoo --enable-magic --enable-pb-tests -enable-address-sanitizer --enable-profiling"
install: |
sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
libtool \
libjansson-dev \
libmagic-dev \
libssl-dev \
protobuf-compiler \
protobuf-c-compiler \
libprotobuf-c-dev
# Build for 32-bit Linux
- os: linux
dist: trusty
sudo: required
env: CONFIGFLAGS="CFLAGS=-m32 --enable-cuckoo --enable-magic"
install: |
sudo dpkg --add-architecture i386 && sudo rm -rf /etc/apt/sources.list.d/
sudo apt-get update
sudo apt-get remove postgresql-9.3
sudo apt-get upgrade -y gcc
sudo apt-get install -y gcc-multilib autoconf automake libtool libjansson-dev:i386 libmagic-dev:i386 libssl-dev:i386
# Build for 64-bit Window using MinGW cross-compiler
- os: linux
dist: focal
sudo: required
env: CONFIGFLAGS=--host=x86_64-w64-mingw32
install: |
sudo apt-get update
sudo apt-get install -y gcc-mingw-w64 autoconf automake libtool
# Build for 64-bit Window using MinGW cross-compiler
- os: linux
dist: focal
sudo: required
env: CONFIGFLAGS=--host=i686-w64-mingw32
install: |
sudo apt-get update
sudo apt-get install -y gcc-mingw-w64 autoconf automake libtool
# Build for 64-bit Linux using Bazel instead of make.
- os: linux
dist: focal
install: |
wget https://github.com/bazelbuild/bazel/releases/download/2.1.0/bazel_2.1.0-linux-x86_64.deb
sudo dpkg -i bazel_2.1.0-linux-x86_64.deb
before_script: bazel info
script: |
bazel test @jansson//... //tests/...
# Build for OS X
# - os: osx
# osx_image: xcode7.3
# - os: osx
# osx_image: xcode8.3
# - os: osx
# osx_image: xcode9.2
before_script: ./bootstrap.sh
script: |
./configure $CONFIGFLAGS
make clean && make
case "$CONFIGFLAGS" in
*--host=*mingw*) ;;
*) make check ;;
esac
after_failure: if [ -e test-suite.log ]; then cat test-suite.log; fi
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "JWobvJ94pWt/xVciQURkNFS3I+gyu2IyZPKYEs6HDlHrpHs4BoVDZeRjmgx0s6aDeQjKJHowGDu17IlbnCkKzXrZErEJkA+Oc/d0SwgXKiUU9WYiaGBJjJUoYZw66QIEuGGKkF4uQ7EIcW/vN7wzrCDyAiPeOPUjVP4Tc2XRzmkSfakfmf9cE5nqT84DPUYiRegM7iepMrZi9kEaAoboBuETT+6eUKdERRadM0QNjZmCYMEMjtFj3lE51Ey2stGqZdKJvJN0FUmxGoaXCFFAsNmZPnFeDkqTf0a+MzxG2m4nnIXyNC/nT5XLItKHog4KROHb4tUpCZJ4iJhcw3loWMCtkZqB2fq2PaOkKk2zxPr3HLCn7ltmOzReBEDjEg68UqWydRW5534JGosbcA9IfshS1VqnZLgGwQHieXNeqhJUumt1DpON7AQEiEzbzAk0y2VcPlDPuCt9QS1k+zPMZLzbwgvs1ZOH39oFESW+iEDdzZjbhyC3J6azTHFcnA7r5SsYe1pzcSUaYtS1ehhb0lU/442JSHw2j00Nv9qFycYNvDrRNQNBxLziVustT0WJoVdFlkKy16iu1tUYOVXKgmMfqUDINfU6zRz3DskVuB9MZzq/4cMdK4jMRIDNZWvye1BzM7o/PiJoNaQc/6iav2RD+5YV46bBr60TqnYyjlM="
addons:
apt:
packages:
- ca-certificates
coverity_scan:
project:
name: "plusvic/yara"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "./configure; make clean"
build_command: "make -j 4"
branch_pattern: master