Commit 2d36138e authored by waja's avatar waja
Browse files

travis-ci: Make use of travis.d.n

parent 51a32a62
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/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment