From 3f09626ea0b94b1ba50bb675318a2cc3af6eecc7 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Mon, 14 Nov 2016 11:31:50 +0100 Subject: [PATCH] travis-ci: Make use of travis.d.n --- .travis.yml | 57 ++++++++++++++++------------------------------------- 1 file changed, 17 insertions(+), 40 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e3a20b..5277855 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,47 +1,24 @@ 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 ca-certificates - # download original tarball (and bypassing #687834) - - 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 ca-certificates - - 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: - global: - # bypass broken certificate validation of uscan - - PERL_LWP_SSL_VERIFY_HOSTNAME=0 - # travis encrypt -r waja/ps-watcher GITHUBTOKEN=XXXXXX (https://help.github.com/articles/creating-an-access-token-for-command-line-use / http://docs.travis-ci.com/user/encryption-keys/) - - secure: "Y4mgj75S6GAvPK1Xri4fPUZXipvwRIYzN4sVIaVbrZqJ1LxhR+91fNwRXxy9bsyI3Bje2H9ZK/W6anGUkqrk8rmjR4vvrbQtR2WBnS4Bt4CpdQKlg/SU1e6rSnJas92GqFf8JSv1C3T2rRcv0bLjhxs4GFUxuXltxmJwkAbWHhI=" + - TRAVIS_DEBIAN_DISTRIBUTION=unstable TRAVIS_DEBIAN_SECURITY_UPDATES=false + - TRAVIS_DEBIAN_DISTRIBUTION=testing -after_success: - - mkdir -p debian/build/release/ - - 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/* +services: + - docker + +script: + # 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 #notifications: # email: false + +branches: + except: + - /^debian\/\d/