miniupnp/.travis.yml

37 lines
898 B
YAML
Raw Normal View History

language: c
matrix:
fast_finish: true
addons:
apt:
packages:
2015-08-26 08:32:55 +00:00
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- iptables-dev
- libevent-dev
- libnfnetlink-dev
# container-based builds
sudo: false
env:
- 'PROJECT=minissdpd'
- 'PROJECT=miniupnpc'
- 'PROJECT=miniupnpc-async'
- 'PROJECT=miniupnpc-libevent'
- 'PROJECT=miniupnpd'
compiler:
- gcc
- clang
script:
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'
- 'MAKEFILE=Makefile && if [ -a Makefile.linux ]; then MAKEFILE=Makefile.linux; fi'
2015-08-26 08:32:55 +00:00
- 'make -f $MAKEFILE -j3'
- 'if [ "$PROJECT" = "miniupnpc" -o "$PROJECT" = "minissdpd" ]; then make -f $MAKEFILE check; fi'
- 'if [ "$PROJECT" = "miniupnpc" ]; then INSTALLPREFIX="$HOME/_pythonmodule" make -f $MAKEFILE pythonmodule; fi'
after_success:
2015-08-26 08:24:54 +00:00
- 'INSTALLPREFIX="$HOME/$PROJECT" make -f $MAKEFILE install'