2015-10-19 14:23:10 +00:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2014-02-13 21:43:33 +00:00
|
|
|
language: c
|
|
|
|
|
2014-02-16 22:10:52 +00:00
|
|
|
before_install:
|
|
|
|
# update package list
|
2014-02-13 21:43:33 +00:00
|
|
|
- sudo apt-get update -qq
|
2014-02-16 22:10:52 +00:00
|
|
|
# installneeded packages for uscan
|
2014-02-13 21:43:33 +00:00
|
|
|
- sudo apt-get install -qq --no-install-recommends devscripts libwww-perl
|
2014-02-16 22:10:52 +00:00
|
|
|
# download original tarball
|
2015-08-21 09:15:33 +00:00
|
|
|
- UVERSION=$(dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d'-' -f1); uscan --verbose --download-version ${UVERSION} --force-download
|
2014-02-16 22:10:52 +00:00
|
|
|
# remove packages needed for uscan
|
2014-02-13 21:43:33 +00:00
|
|
|
- sudo apt-get purge -qq libwww-perl
|
|
|
|
- sudo apt-get autoremove -qq
|
2014-02-16 22:10:52 +00:00
|
|
|
|
|
|
|
install:
|
2015-03-10 13:12:46 +00:00
|
|
|
# install packages needed for mk-build-deps
|
|
|
|
- sudo apt-get install -qq --no-install-recommends devscripts equivs
|
|
|
|
# pull build deps from debian/control
|
2015-10-19 14:51:43 +00:00
|
|
|
- sudo mk-build-deps -ir -t "apt-get --yes --no-install-recommends"
|
2015-03-10 13:12:46 +00:00
|
|
|
# remove packages needed for mk-build-deps
|
|
|
|
- sudo apt-get purge -qq equivs
|
|
|
|
- sudo apt-get autoremove -qq
|
2014-02-13 21:43:33 +00:00
|
|
|
|
|
|
|
script:
|
2014-02-16 22:10:52 +00:00
|
|
|
# build the debian package
|
2015-03-10 14:01:38 +00:00
|
|
|
- dpkg-buildpackage -uc -us
|
2014-02-13 21:43:33 +00:00
|
|
|
|
2014-02-25 13:06:22 +00:00
|
|
|
after_script:
|
2014-03-05 21:26:36 +00:00
|
|
|
# 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
|
2014-02-25 13:06:22 +00:00
|
|
|
# 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
|
2015-03-15 16:01:28 +00:00
|
|
|
|
|
|
|
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/*
|
|
|
|
|
2014-02-13 21:43:33 +00:00
|
|
|
#notifications:
|
|
|
|
# email: false
|