Nick Tiskov
11 years ago
1 changed files with 46 additions and 55 deletions
@ -1,62 +1,53 @@ |
|||||||
|
language: |
||||||
|
- cpp |
||||||
|
|
||||||
|
env: |
||||||
|
# use libtorrent 0.15.10 |
||||||
|
- lt_source=from_dist gui=true |
||||||
|
- lt_source=from_dist gui=false |
||||||
|
# use libtorrent 0.16.X from RC_0_16 svn branch |
||||||
|
- lt_source=from_svn gui=true |
||||||
|
- lt_source=from_svn gui=false |
||||||
|
|
||||||
|
branches: |
||||||
|
except: |
||||||
|
- search_encoding_windows |
||||||
|
- v2_9_x |
||||||
|
|
||||||
notifications: |
notifications: |
||||||
email: |
email: |
||||||
on_success: change |
on_success: change |
||||||
on_failure: change |
on_failure: change |
||||||
|
|
||||||
language: |
before_install: |
||||||
# linux |
- shopt -s expand_aliases |
||||||
- cpp |
- alias sudo="sudo " |
||||||
|
# Using nprocs/2 sometimes may fail (gcc is killed by system), just use two threads |
||||||
|
- alias make="colormake -j2 " |
||||||
|
|
||||||
# osx |
# Also setup a virtual display for after_success target when gui == true |
||||||
# - objective-c |
- 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 |
||||||
|
- ltconf=" --with-libgeoip=system" |
||||||
|
|
||||||
env: |
- echo settings |
||||||
# linux |
- echo $lt_source |
||||||
# libtorrent 0.15.10 |
- echo $ltconf |
||||||
- lt=APT debug=false gui=true |
- echo $gui |
||||||
- lt=APT debug=false gui=false |
- echo $qbtconf |
||||||
# libtorrent 0.16.x |
|
||||||
- lt=repo debug=false gui=true |
- sudo apt-get -qq update |
||||||
- lt=repo debug=false gui=false |
# Travis can stall during heavy load if these packages are installed in one step - split the command |
||||||
|
- sudo apt-get -qq install debhelper qconf colormake libssl-dev libgeoip-dev |
||||||
|
- sudo apt-get -qq install libboost-dev libboost-filesystem-dev libboost-system-dev |
||||||
|
- sudo apt-get -qq install libqt4-dev |
||||||
|
|
||||||
install: |
install: |
||||||
# linux, osx |
- if [[ "$lt_source" == "from_dist" ]]; then sudo apt-get -qq install libtorrent-rasterbar-dev; fi |
||||||
#- (cd src/geoip && wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz && gzip -d GeoIP.dat.gz) |
- if [[ "$lt_source" == "from_svn" ]]; then 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 |
||||||
|
|
||||||
# linux |
|
||||||
- shopt -s expand_aliases |
|
||||||
- alias sudo="sudo " |
|
||||||
- alias make=colormake |
|
||||||
- export MAKEFLAGS="-j $((`nproc` / 2))" |
|
||||||
|
|
||||||
- if $debug; then qtc="--enable-debug"; ltc="--enable-debug"; fi |
|
||||||
- if ! $gui; then qtc="$qtc --disable-gui"; fi |
|
||||||
- ltc="$ltc --with-libgeoip" |
|
||||||
|
|
||||||
- echo settings |
|
||||||
- echo $lt |
|
||||||
- echo $debug |
|
||||||
- echo $gui |
|
||||||
- echo $qtc |
|
||||||
- echo $ltc |
|
||||||
|
|
||||||
- sudo apt-get -qq update |
|
||||||
- sudo apt-get -qq install debhelper libboost-dev libboost-filesystem-dev libboost-system-dev libqt4-dev qconf colormake libgeoip-dev |
|
||||||
- if [[ "$lt" == "APT" ]]; then sudo apt-get -qq install libtorrent-rasterbar-dev; fi |
|
||||||
- if [[ "$lt" == "repo" ]]; then sudo apt-get -qq build-dep libtorrent-rasterbar-dev && svn checkout svn://svn.code.sf.net/p/libtorrent/code/branches/RC_0_16 && (cd RC_0_16 && ./autotool.sh && ./configure $ltc && sudo make install); fi |
|
||||||
|
|
||||||
# osx |
|
||||||
# - export MAKEFLAGS="-j 4" |
|
||||||
# - brew update |
|
||||||
# - brew install libtorrent-rasterbar qt boost |
|
||||||
|
|
||||||
script: |
script: |
||||||
# linux, osx |
- qt-qconf |
||||||
- mkdir -p build && cd build && mkdir -p install |
- ./configure $qbtconf && sudo make install |
||||||
|
|
||||||
# linux |
|
||||||
- (cd .. && qt-qconf) |
|
||||||
- ../configure $qtc && sudo make install |
|
||||||
|
|
||||||
# osx |
after_success: |
||||||
# - qmake ../qbittorrent.pro && make |
- if $gui ; then qbittorrent --version ; else qbittorrent-nox --version ; fi |
||||||
|
Loading…
Reference in new issue