mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-18 18:31:15 +00:00
travis-ci: build miniupnpc with cmake
This commit is contained in:
parent
c1cbcd971b
commit
de37ef906e
23
.travis.yml
23
.travis.yml
@ -12,6 +12,7 @@ addons:
|
||||
- libevent-dev
|
||||
- libnfnetlink-dev
|
||||
- uuid-dev
|
||||
- cmake
|
||||
|
||||
# container-based builds
|
||||
sudo: false
|
||||
@ -39,12 +40,26 @@ before_install:
|
||||
|
||||
script:
|
||||
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'
|
||||
- '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'
|
||||
- 'if [ "$MAKEFILE" = "Makefile.macosx" ]; then make -f $MAKEFILE depend; fi'
|
||||
- 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
|
||||
- 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'
|
||||
- 'if [ "$PROJECT" = "miniupnpc" -o "$PROJECT" = "minissdpd" -o "$PROJECT" = "miniupnpd" ]; then make -f $MAKEFILE check; fi'
|
||||
- 'if [ "$PROJECT" = "miniupnpc" ]; then INSTALLPREFIX="$HOME/_pythonmodule" make -f $MAKEFILE pythonmodule; fi'
|
||||
- if [ "$PROJECT" = "miniupnpc" -o "$PROJECT" = "minissdpd" -o "$PROJECT" = "miniupnpd" ]; then
|
||||
make -f $MAKEFILE check;
|
||||
fi
|
||||
- if [ "$PROJECT" = "miniupnpc" ]; then
|
||||
INSTALLPREFIX="$HOME/_pythonmodule" make -f $MAKEFILE pythonmodule;
|
||||
fi
|
||||
- if [ -f "CMakeLists.txt" ] ; then
|
||||
mkdir cmake-build && cd cmake-build &&
|
||||
cmake .. && make ;
|
||||
fi
|
||||
|
||||
after_success:
|
||||
- 'INSTALLPREFIX="$HOME/$PROJECT" make -f $MAKEFILE install'
|
||||
|
Loading…
x
Reference in New Issue
Block a user