2013-07-02 07:55:58 +04:00
|
|
|
language:
|
2013-07-27 12:30:13 +04:00
|
|
|
- cpp
|
2013-07-02 07:55:58 +04:00
|
|
|
|
|
|
|
env:
|
2013-07-27 12:30:13 +04:00
|
|
|
# use libtorrent 0.15.10
|
2013-10-23 23:16:23 +04:00
|
|
|
# uncomment when Travis doesn't use Ubuntu 12.04 LTS, which has libtorrent 0.15.10 as package
|
|
|
|
#- lt_source=from_dist gui=true
|
|
|
|
#- lt_source=from_dist gui=false
|
2013-07-27 12:30:13 +04:00
|
|
|
# use libtorrent 0.16.X from RC_0_16 svn branch
|
2014-08-26 01:57:24 +04:00
|
|
|
- lt_source=from_svnRC_0_16 gui=true
|
|
|
|
- lt_source=from_svnRC_0_16 gui=false
|
2014-11-26 02:39:17 +03:00
|
|
|
- lt_source=from_svnRC_1_0 gui=true
|
|
|
|
- lt_source=from_svnRC_1_0 gui=false
|
2013-07-27 12:30:13 +04:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- search_encoding_windows
|
|
|
|
- v2_9_x
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- shopt -s expand_aliases
|
|
|
|
- alias sudo="sudo "
|
|
|
|
# Using nprocs/2 sometimes may fail (gcc is killed by system), just use two threads
|
|
|
|
- alias make="colormake -j2 "
|
|
|
|
|
|
|
|
# Also setup a virtual display for after_success target when gui == true
|
|
|
|
- if ! $gui; then qbtconf="$qbtconf --disable-gui"; else export "DISPLAY=:99.0" && /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 ; fi
|
2015-04-05 19:53:17 +03:00
|
|
|
- qbtconf="$qbtconf --with-qt4"
|
2013-07-27 12:30:13 +04:00
|
|
|
- ltconf=" --with-libgeoip=system"
|
|
|
|
|
|
|
|
- echo settings
|
|
|
|
- echo $lt_source
|
|
|
|
- echo $ltconf
|
|
|
|
- echo $gui
|
|
|
|
- echo $qbtconf
|
|
|
|
|
|
|
|
- sudo apt-get -qq update
|
|
|
|
# Travis can stall during heavy load if these packages are installed in one step - split the command
|
2014-04-20 01:00:23 +04:00
|
|
|
- sudo apt-get -qq install debhelper autoconf automake colormake libssl-dev libgeoip-dev
|
2013-10-23 23:16:23 +04:00
|
|
|
# uncomment when Travis doesn't use Ubuntu 12.04 LTS, which has libtorrent 0.15.10 as package
|
|
|
|
#- sudo apt-get -qq install libboost-dev libboost-filesystem-dev libboost-system-dev
|
|
|
|
- sudo apt-get -qq install libboost-dev libboost-system-dev
|
2013-07-27 12:30:13 +04:00
|
|
|
- sudo apt-get -qq install libqt4-dev
|
2013-07-02 07:55:58 +04:00
|
|
|
|
|
|
|
install:
|
2014-08-26 01:57:24 +04:00
|
|
|
#- if [[ "$lt_source" == "from_dist" ]]; then sudo apt-get -qq install libtorrent-rasterbar-dev; fi
|
2015-04-05 19:53:17 +03:00
|
|
|
- if [[ "$lt_source" == "from_svnRC_0_16" ]]; then qbtconf="$qbtconf --with-libtorrent-rasterbar0.16" && cd .. && svn co svn://svn.code.sf.net/p/libtorrent/code/branches/RC_0_16 ./libtorrent && (cd libtorrent && ./autotool.sh && ./configure $ltconf && sudo make install) && sudo ldconfig /usr/local/lib && cd $TRAVIS_BUILD_DIR ; fi
|
2014-11-26 02:39:17 +03:00
|
|
|
- if [[ "$lt_source" == "from_svnRC_1_0" ]]; then cd .. && svn co svn://svn.code.sf.net/p/libtorrent/code/branches/RC_1_0 ./libtorrent && (cd libtorrent && ./autotool.sh && ./configure $ltconf && sudo make install) && sudo ldconfig /usr/local/lib && cd $TRAVIS_BUILD_DIR ; fi
|
2013-07-02 07:55:58 +04:00
|
|
|
|
|
|
|
script:
|
2014-04-20 01:00:23 +04:00
|
|
|
- ./bootstrap.sh
|
2013-07-27 12:30:13 +04:00
|
|
|
- ./configure $qbtconf && sudo make install
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- if $gui ; then qbittorrent --version ; else qbittorrent-nox --version ; fi
|