From b03a72ee2b15ec5810ab398b747bf63084595c4b Mon Sep 17 00:00:00 2001 From: Fred-Barclay Date: Sun, 15 Oct 2017 23:31:27 -0500 Subject: Add Debian builds to .travis.yml (work in progress). This experimentally adds Debian package building for our Travis CI service. This is needed because there are errors building Debian packages even when firejail as a whole builds correctly due to errors in firejail's Debian conffiles. For instance, at the moment `make deb` fails because lxterminal is not listed in platform/debian/conffiles --- .travis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5dd77e1f5..a52c34bd2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,16 @@ dist: trusty sudo: true script: - - sudo apt-get -y install expect csh xzdec + - sudo apt-get -y install expect csh xzdec lintian fakeroot + # Build Debian package + - ( cd firejail; ./configure --prefix=/usr --enable-git-install && make deb && sudo dpkg -i firejail*.deb ) + # Remove Debian package + - ( sudo dpkg -P firejail ) - ( cd firejail ; ./configure --prefix=/usr --enable-git-install && make && sudo make install && make test-travis ) - ( cd firejail ; sudo make install-strip DESTDIR=$(readlink -f appdir) ) + - ( cd firejail ; ./configure --prefix=/usr --enable-git-install && make && sudo make install && make test-travis ) + - ( cd firejail ; sudo make install-strip DESTDIR=$(readlink -f appdir) ) + # If successful, build release tarball - ( cd appdir/ ; tar cfvj ../firejail-build$TRAVIS_BUILD_NUMBER.tar.bz2 . ) - curl --upload-file ./firejail-*.tar.bz2 https://transfer.sh/firejail-build$TRAVIS_BUILD_NUMBER.tar.bz2 - - # Could use https://github.com/probonopd/uploadtool to upload to GitHub Releases instead \ No newline at end of file + - # Could use https://github.com/probonopd/uploadtool to upload to GitHub Releases instead -- cgit v1.2.3-70-g09d2