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

This commit is contained in:
Jan Wagner 2016-11-18 18:09:59 +01:00
parent 80b011cb91
commit 583a10d923

View file

@ -1,45 +1,31 @@
sudo: required 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
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
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: env:
global: - TRAVIS_DEBIAN_DISTRIBUTION=unstable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/" TRAVIS_DEBIAN_SECURITY_UPDATES=false
# travis encrypt -r waja/postfwd GITHUBTOKEN=XXXXXX (https://help.github.com/articles/creating-an-access-token-for-command-line-use / http://docs.travis-ci.com/user/encryption-keys/) - TRAVIS_DEBIAN_DISTRIBUTION=testing TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
secure: "oyrTZ0Bp7ieO908vrBBwc99kLxZRPeqArbwdt+SPYrJsdKMuV1i2XGZVQ5xzKrZj6gS58jpVkx0vCIZK7ad+TnihUEE9MQ9gZb0gUYHFIGBc2PzD6jItOeBuOCdACsvKgBXO8KHInSpkLmlE8f4ua/qNa946S+nVJJWhahstH6w=" - TRAVIS_DEBIAN_DISTRIBUTION=stable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
after_success: services:
- mkdir -p debian/build/release/ - docker
- 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}' | awk -F'+' '{print $1}'`" debian/build/release/* before_script:
# fetch all tags (not done due travis cloning with depth=50)
- git fetch --tags
script:
# build the debian package
- wget -O- http://travis.debian.net/script.sh | sh -
after_script:
# 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: #notifications:
# email: false # email: false
branches:
except:
- /^debian\/\d/