Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
debian
dns-flood-detector
Commits
2d36138e
Commit
2d36138e
authored
Nov 18, 2016
by
waja
Browse files
travis-ci: Make use of travis.d.n
parent
51a32a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
2d36138e
sudo
:
required
dist
:
trusty
language
:
c
before_install
:
# update package list
-
sudo apt-get update -qq
# installneeded packages for uscan
-
sudo apt-get install -qq --no-install-recommends devscripts libwww-perl
# download original tarball
-
UVERSION=$(dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d'-' -f1); uscan --verbose --download-version ${UVERSION} --force-download
# remove packages needed for uscan
-
sudo apt-get purge -qq libwww-perl
-
sudo apt-get autoremove -qq
env
:
-
TRAVIS_DEBIAN_DISTRIBUTION=unstable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/" TRAVIS_DEBIAN_SECURITY_UPDATES=false
-
TRAVIS_DEBIAN_DISTRIBUTION=testing TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
-
TRAVIS_DEBIAN_DISTRIBUTION=stable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
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
services
:
-
docker
before_script
:
# fetch all tags (not done due travis cloning with depth=50)
-
git fetch --tags
script
:
# build the debian package
-
dpkg-buildpackage -uc -us
# build the debian package
-
wget -O- http://travis.debian.net/script.sh | sh -
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
# run lintian after build
-
sudo add-apt-repository -y ppa:waja/trusty-backports
-
sudo apt-get update -qq
-
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
#notifications:
# email: false
branches
:
except
:
-
/^debian\/\d/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment