aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 448ba2a8493ddd1133e4d6f49b2b430068cf8da4 (plain) (blame)
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
  - ( ./configure --prefix=/usr && make deb && sudo dpkg -i firejail*.deb )
  # Remove Debian package
  - ( sudo dpkg -P firejail )
  - ( ./configure --prefix=/usr && make && sudo make install && make test-travis )
  - ( 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