forked from netblue30/firejail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
16 lines (15 loc) · 811 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
language: c
dist: trusty
sudo: true
script:
- 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) )
# 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