-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
85 lines (74 loc) · 1.49 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
language: go
os:
- linux
- osx
go:
- 1.15.x
git:
depth: false
services:
- docker
env:
global:
- STRUCTOR_VERSION=v1.10.0
- STRUCTOR_LATEST_TAG=v0.1.1
- GO111MODULE=on
- CGO_ENABLED=1
install:
- >
if [ x"$TRAVIS_OS_NAME" = x"linux" ]; then
sudo -E apt-get -yq update;
sudo -E apt-get -yqq --no-install-suggests --no-install-recommends install \
build-essential \
autoconf \
libtool \
bison \
flex \
make \
libssl-dev \
libpcap-dev \
gcc-multilib \
g++-multilib \
&& sudo -E ./.travis/pfring-install.sh \
&& sudo -E ./.travis/install-yara.sh
fi
- >
if [ x"$TRAVIS_OS_NAME" = x"osx" ]; then
if [ -z $TRAVIS_TAG ]; then
exit 0
fi
fi
before_script:
- >
if [ x"$TRAVIS_OS_NAME" = x"linux" ]; then
go mod download
fi
script:
- >
if [ x"$TRAVIS_OS_NAME" = x"linux" ]; then
make test-race
fi
before_deploy:
- ./.travis/before_deploy.sh
deploy:
- provider: pages
token: ${GITHUB_TOKEN}
edge: false
strategy: git
local_dir: site
skip_cleanup: true
on:
repo: mole-ids/mole
all_branches: true
condition: $TRAVIS_BRANCH =~ ^master$|^v[0-9.]+$
- provider: releases
api_key: ${GITHUB_TOKEN}
file_glob: true
file: build/mole*
overwrite: true
skip_cleanup: true
draft: false
on:
repo: mole-ids/mole
all_branches: true
tags: true