TravisCI: split commands

This commit is contained in:
Chocobo1 2015-08-26 16:32:55 +08:00
parent 0a67677fff
commit 5e34ee2997
1 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ matrix:
addons: addons:
apt: apt:
packages: packages:
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- iptables-dev - iptables-dev
- libevent-dev - libevent-dev
- libnfnetlink-dev - libnfnetlink-dev
@ -27,7 +28,9 @@ compiler:
script: script:
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT' - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'
- 'MAKEFILE=Makefile && if [ -a Makefile.linux ]; then MAKEFILE=Makefile.linux; fi' - 'MAKEFILE=Makefile && if [ -a Makefile.linux ]; then MAKEFILE=Makefile.linux; fi'
- 'make -f $MAKEFILE -j3 && if [ "$PROJECT" = "miniupnpc" -o "$PROJECT" = "minissdpd" ]; then make -f $MAKEFILE check; fi && if [ "$PROJECT" = "miniupnpc" ]; then make -f $MAKEFILE pythonmodule; fi' - '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: after_success:
- 'INSTALLPREFIX="$HOME/$PROJECT" make -f $MAKEFILE install' - 'INSTALLPREFIX="$HOME/$PROJECT" make -f $MAKEFILE install'