2014-02-13 21:39:38 +00:00
|
|
|
language: c
|
|
|
|
|
2014-02-16 22:45:22 +00:00
|
|
|
before_install:
|
|
|
|
# update package list
|
2014-02-13 21:39:38 +00:00
|
|
|
- sudo apt-get update -qq
|
2014-02-16 22:45:22 +00:00
|
|
|
# installneeded packages for uscan
|
2015-03-11 08:24:08 +00:00
|
|
|
- sudo apt-get install -qq --no-install-recommends devscripts libwww-perl ca-certificates
|
2015-03-11 08:33:47 +00:00
|
|
|
# download original tarball (and bypassing #687834)
|
2015-03-11 13:45:50 +00:00
|
|
|
- uscan --force-download
|
2014-02-16 22:45:22 +00:00
|
|
|
# remove packages needed for uscan
|
2015-03-11 08:24:08 +00:00
|
|
|
- sudo apt-get purge -qq libwww-perl ca-certificates
|
2014-02-13 21:39:38 +00:00
|
|
|
- sudo apt-get autoremove -qq
|
2014-02-16 22:45:22 +00:00
|
|
|
|
|
|
|
install:
|
2015-03-10 15:02:03 +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
|
|
|
|
- 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-13 21:39:38 +00:00
|
|
|
|
|
|
|
script:
|
2014-02-16 22:45:22 +00:00
|
|
|
# build the debian package
|
2015-03-10 15:02:19 +00:00
|
|
|
- dpkg-buildpackage -uc -us
|
2014-02-13 21:39:38 +00:00
|
|
|
|
2014-02-25 13:06:45 +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
|
2015-03-15 15:46:01 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2015-03-15 16:12:00 +00:00
|
|
|
# bypass broken certificate validation of uscan
|
|
|
|
- PERL_LWP_SSL_VERIFY_HOSTNAME=0
|
2015-03-15 15:46:01 +00:00
|
|
|
# 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/)
|
2015-03-15 16:12:00 +00:00
|
|
|
- secure: "Y4mgj75S6GAvPK1Xri4fPUZXipvwRIYzN4sVIaVbrZqJ1LxhR+91fNwRXxy9bsyI3Bje2H9ZK/W6anGUkqrk8rmjR4vvrbQtR2WBnS4Bt4CpdQKlg/SU1e6rSnJas92GqFf8JSv1C3T2rRcv0bLjhxs4GFUxuXltxmJwkAbWHhI="
|
2015-03-15 15:46:01 +00:00
|
|
|
|
|
|
|
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:39:38 +00:00
|
|
|
#notifications:
|
|
|
|
# email: false
|