[Pkg-nagios-changes] [pkg-nagios-snmp-plugins] 01/10: travis-ci: Make use of travis.d.n
Jan Wagner
waja at moszumanska.debian.org
Mon Dec 5 01:35:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-snmp-plugins.
commit 1eca1c0377fc2f403ad3bf96b211ac15709f4e17
Author: Jan Wagner <waja at cyconet.org>
Date: Fri Nov 18 18:09:31 2016 +0100
travis-ci: Make use of travis.d.n
---
.travis.yml | 60 +++++++++++++++++++++---------------------------------------
1 file changed, 21 insertions(+), 39 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 310303e..39c4c32 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,49 +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/"
+
+services:
+ - docker
-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
+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 add-apt-repository -y ppa:waja/precise-backports
- - sudo apt-get update -qq
- - sudo apt-get install -qq --no-install-recommends lintian
- # 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:
- # travis encrypt -r waja/nagios-snmp-plugins GITHUBTOKEN=XXXXXX (https://help.github.com/articles/creating-an-access-token-for-command-line-use / http://docs.travis-ci.com/user/encryption-keys/)
- secure: "YOPmOpvVg1J5LcP/dT+Dr5q62agttDyc2IgiTdzwLK2iZQwfQ1nQ2+TPf5f6eaA+cqst1n8GCR/SSICio7dQdfMieY+552gySAoZQw+zzLEg/Kkp2eC71DZ6cyPl7HZ7cVzXqvT9kSSN+HaMkeWaFtvjiyGA2PvtrsFJsZlF+EA="
-
-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/*
+ # 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/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-snmp-plugins.git
More information about the Pkg-nagios-changes
mailing list