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
|
|
|
#
|
2014-07-11 17:20:42 +00:00
|
|
|
- sudo apt-get install -qq --no-install-recommends devscripts libwww-perl libcrypt-ssleay-perl && uscan --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:
|
|
|
|
# install implicit build dependencies
|
|
|
|
- sudo apt-get install -qq --no-install-recommends build-essential fakeroot devscripts
|
2014-07-21 17:03:15 +00:00
|
|
|
# add ppa for libfreeradius-client-dev and newer lintian
|
|
|
|
- sudo add-apt-repository -y ppa:waja/precise-backports
|
|
|
|
- sudo apt-get update -qq
|
2014-02-21 23:03:05 +00:00
|
|
|
# install explicit build dependencies
|
2014-07-21 17:03:15 +00:00
|
|
|
- sudo apt-get install -qq --no-install-recommends debhelper dpatch perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libfreeradius-client-dev libkrb5-dev libnet-snmp-perl procps mawk dpatch hardening-wrapper
|
2014-02-21 23:03:05 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
# build the debian package
|
|
|
|
- debuild -uc -us
|
|
|
|
|
2014-02-25 13:08:08 +00:00
|
|
|
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
|
2014-02-21 23:03:05 +00:00
|
|
|
#notifications:
|
|
|
|
# email: false
|
|
|
|
|