-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
41 lines (40 loc) · 1.06 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
language: rust
dist: xenial
os: linux
rust:
- stable
- nightly
env:
global:
- MAKEFLAGS="-j 2"
jobs:
- YARA_VERSION=4.1.1 YARA_FEATURES=bindgen
- YARA_VERSION=4.1.1 YARA_FEATURES=bundled-4_1_1
- YARA_FEATURES=vendored,bindgen
- YARA_FEATURES=vendored,bundled-4_1_1
before_install:
- |
if [ -n "$YARA_VERSION" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then
wget https://github.com/VirusTotal/yara/archive/v$YARA_VERSION.tar.gz
tar xzf v$YARA_VERSION.tar.gz
cd yara-$YARA_VERSION
./bootstrap.sh && ./configure
make
sudo make install
sudo ldconfig -v
cd ..
fi
script:
- cargo build --verbose --no-default-features --features "$YARA_FEATURES"
- cargo test --verbose --no-default-features --features "$YARA_FEATURES";
jobs:
include:
- os: windows
rust: stable
env: YARA_FEATURES=vendored,bindgen
- os: windows
rust: stable
env: YARA_FEATURES=vendored,bundled-4_1_1
allow_failures:
- rust: nightly
fast_finish: true