From 2d36138e4dc8098f838b2e48ab16954fefab2f32 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 18 Nov 2016 17:49:28 +0100 Subject: [PATCH] travis-ci: Make use of travis.d.n --- .travis.yml | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa67a26..39c4c32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,34 +1,31 @@ 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/