miniupnp/.travis.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

language: c
os:
- linux
- osx
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
2016-02-12 14:18:32 +00:00
- uuid-dev
- libssl-dev
- libmnl-dev
- libnftnl-dev
# container-based builds
sudo: false
env:
- 'PROJECT=minissdpd'
- 'PROJECT=miniupnpc'
- 'PROJECT=miniupnpc-async'
- 'PROJECT=miniupnpc-libevent'
- 'PROJECT=miniupnpd'
matrix:
exclude:
- os: osx
env: PROJECT=miniupnpd
- os: osx
compiler: gcc
compiler:
- gcc
- clang
before_install:
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi'
script:
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'
2015-09-04 16:33:04 +00:00
- 'MAKEFILE=Makefile && if [ -f Makefile.linux -a "$TRAVIS_OS_NAME" = "linux" ]; then MAKEFILE=Makefile.linux; elif [ -f Makefile.macosx -a "$TRAVIS_OS_NAME" = "osx" ]; then MAKEFILE=Makefile.macosx; fi'
2015-09-04 16:43:03 +00:00
- 'if [ "$MAKEFILE" = "Makefile.macosx" ]; then make -f $MAKEFILE depend; fi'
- 'CONFIG_OPTIONS="--ipv6 --igd2" make -f $MAKEFILE -j3'
- 'if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PROJECT" = "miniupnpd" ]; then make -f Makefile.linux_nft ; fi'
2015-09-22 14:02:19 +00:00
- 'if [ "$PROJECT" = "miniupnpc" -o "$PROJECT" = "minissdpd" -o "$PROJECT" = "miniupnpd" ]; then make -f $MAKEFILE check; fi'
2015-08-26 08:32:55 +00:00
- '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'