forked from waja/maldetect
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (34 loc) · 1.89 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
sudo: required
dist: trusty
language: c
before_install:
# update package list
- sudo apt-get update -qq
install:
# install packages needed for mk-build-deps
- sudo apt-get install -qq --no-install-recommends devscripts equivs
# pull build deps from debian/control
- sudo mk-build-deps -ir -t "apt-get --yes --no-install-recommends"
# remove packages needed for mk-build-deps
- sudo apt-get purge -qq equivs
- sudo apt-get autoremove -qq
before_script:
# download original
- sudo apt-get install -qq --no-install-recommends devscripts libwww-perl libcrypt-ssleay-perl && UVERSION=$(dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d'-' -f1); uscan --verbose --download-version ${UVERSION} --force-download && sudo apt-get purge -qq libwww-perl libcrypt-ssleay-perl && sudo apt-get autoremove -qq
script:
# build the debian package
- dpkg-buildpackage -uc -us
after_script:
# run lintian after build
- sudo apt-get install -qq --no-install-recommends lintian
- lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.deb && lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.dsc
env:
global:
# travis encrypt -r waja/maldetect GITHUBTOKEN=XXXXXX (https://help.github.com/articles/creating-an-access-token-for-command-line-use / http://docs.travis-ci.com/user/encryption-keys/)
secure: "sEPL9Q6apSnNbW1p6GPRxtZj39i4eDEQp8aQ5WTTBbOCwZinNL8bLkPkioGXlp21tC7bAYN7Wxrzl1CwH4HYNACpQtJvUv6+AMbT4OkOibsellzWf7SvRYAofxjKq8AoU3WQP3+K/sN35LBX2yM685x1e4lqYX0onn5ffn56MVY="
after_success:
- mkdir -p debian/build/release/
- for FILE in $(dcmd ../*.changes); do cp ../$(basename $FILE) debian/build/release/; done
- debian/bin/github-release.sh "$TRAVIS_REPO_SLUG" "debian/`head -1 debian/changelog | awk -F'[()]' '{print $2}'`" debian/build/release/*
#notifications:
# email: false