pkg-monitoring-plugins/.travis.yml

43 lines
1.7 KiB
YAML
Raw Normal View History

2014-02-21 23:03:05 +00:00
language: c
before_install:
# cleanup git stuff (source format 1.0 does not exclude it)
- rm -rf .git .travis.yml
# update package list
- sudo apt-get update -qq
2014-02-27 20:46:52 +00:00
# remove the shiped gawk (we use mawk)
- sudo apt-get purge -qq gawk
2014-02-21 23:03:05 +00:00
#
- sudo apt-get install -qq --no-install-recommends devscripts libwww-perl libcrypt-ssleay-perl && UVERSION=$(dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d'-' -f1); uscan --verbose --download-version ${UVERSION} --force-download && sudo apt-get purge -qq libwww-perl libcrypt-ssleay-perl && sudo apt-get autoremove -qq
2014-02-21 23:03:05 +00:00
# # installneeded packages for uscan
# - sudo apt-get install -qq --no-install-recommends devscripts libwww-perl libcrypt-ssleay-perl
# # download original tarball
# - uscan --force-download
# # remove packages needed for uscan
# - sudo apt-get purge -qq libwww-perl libcrypt-ssleay-perl
# - sudo apt-get autoremove -qq
install:
# add ppa for libfreeradius-client-dev and newer lintian
- sudo add-apt-repository -y ppa:waja/precise-backports
- sudo apt-get update -qq
# 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
# remove packages needed for mk-build-deps
- sudo apt-get purge -qq equivs
- sudo apt-get autoremove -qq
2014-02-21 23:03:05 +00:00
script:
2015-03-10 15:06:33 +00:00
# build the debian package
- dpkg-buildpackage -uc -us
2014-02-21 23:03:05 +00:00
2014-02-25 13:08:08 +00:00
after_script:
2015-03-10 15:06:33 +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
2014-02-21 23:03:05 +00:00
#notifications:
# email: false