travis-ci: Make use of travis.d.n
This commit is contained in:
parent
51a32a62bb
commit
2d36138e4d
39
.travis.yml
39
.travis.yml
|
@ -1,34 +1,31 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
|
||||||
language: c
|
|
||||||
|
|
||||||
before_install:
|
env:
|
||||||
# update package list
|
- TRAVIS_DEBIAN_DISTRIBUTION=unstable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/" TRAVIS_DEBIAN_SECURITY_UPDATES=false
|
||||||
- sudo apt-get update -qq
|
- TRAVIS_DEBIAN_DISTRIBUTION=testing TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
|
||||||
# installneeded packages for uscan
|
- TRAVIS_DEBIAN_DISTRIBUTION=stable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
|
||||||
- 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
|
|
||||||
|
|
||||||
install:
|
services:
|
||||||
# install packages needed for mk-build-deps
|
- docker
|
||||||
- sudo apt-get install -qq --no-install-recommends devscripts equivs
|
|
||||||
# pull build deps from debian/control
|
before_script:
|
||||||
- sudo mk-build-deps -ir -t "apt-get --yes --no-install-recommends"
|
# fetch all tags (not done due travis cloning with depth=50)
|
||||||
# remove packages needed for mk-build-deps
|
- git fetch --tags
|
||||||
- sudo apt-get purge -qq equivs
|
|
||||||
- sudo apt-get autoremove -qq
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# build the debian package
|
# build the debian package
|
||||||
- dpkg-buildpackage -uc -us
|
- wget -O- http://travis.debian.net/script.sh | sh -
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
# run lintian after build
|
# 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
|
- 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
|
- lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.deb && lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.dsc
|
||||||
|
|
||||||
#notifications:
|
#notifications:
|
||||||
# email: false
|
# email: false
|
||||||
|
|
||||||
|
branches:
|
||||||
|
except:
|
||||||
|
- /^debian\/\d/
|
||||||
|
|
Loading…
Reference in a new issue