@@ -2,15 +2,19 @@ language:
22 - cpp
33
44env :
5- # use libtorrent 0.15.10
6- # uncomment when Travis doesn't use Ubuntu 12.04 LTS, which has libtorrent 0.15.10 as package
7- # - lt_source=from_dist gui=true
8- # - lt_source=from_dist gui=false
9- # use libtorrent 0.16.X from RC_0_16 svn branch
10- - lt_source=from_svnRC_0_16 gui=true
11- - lt_source=from_svnRC_0_16 gui=false
12- - lt_source=from_svnRC_1_0 gui=true
13- - lt_source=from_svnRC_1_0 gui=false
5+ matrix :
6+ # use libtorrent 0.15.10
7+ # uncomment when Travis doesn't use Ubuntu 12.04 LTS, which has libtorrent 0.15.10 as package
8+ # - lt_source=from_dist gui=true
9+ # - lt_source=from_dist gui=false
10+ # use libtorrent 0.16.X from RC_0_16 svn branch
11+ - lt_source=from_svnRC_0_16 gui=true
12+ - lt_source=from_svnRC_0_16 gui=false
13+ - lt_source=from_svnRC_1_0 gui=true
14+ - lt_source=from_svnRC_1_0 gui=false
15+ global :
16+ - secure : " jsPZRwIZDLKza6wfy5ob0cAFVqEb3y0lIzpGNmwpcmxDlK0oqMxybKFIxcq+jFECsvVokZ2s7mP5wkUjhLlu4ksZNI86kdYMhwzIgaTDTHkKRwTEZKvNKEZgDvH7jV0IySRnSwI7LTbWGd4BJlhX6F5GSo+gRnuLxDwjckRc1fI="
17+ - coverity_branch : coverity_scan
1418
1519branches :
1620 except :
@@ -20,9 +24,12 @@ branches:
2024notifications :
2125 email :
2226 on_success : change
23- on_failure : change
27+ on_failure : change
2428
2529before_install :
30+ # allow specific build for coverity, others will stop
31+ - if [ "$TRAVIS_BRANCH" = "$coverity_branch" ] && ! [[ "$lt_source" == "from_svnRC_1_0" && "$gui" == "true" ]]; then exit ; fi
32+
2633 - shopt -s expand_aliases
2734 - alias sudo="sudo "
2835 # Using nprocs/2 sometimes may fail (gcc is killed by system), just use two threads
@@ -45,16 +52,27 @@ before_install:
4552 # uncomment when Travis doesn't use Ubuntu 12.04 LTS, which has libtorrent 0.15.10 as package
4653 # - sudo apt-get -qq install libboost-dev libboost-filesystem-dev libboost-system-dev
4754 - sudo apt-get -qq install libboost-dev libboost-system-dev
48- - sudo apt-get -qq install libqt4-dev
55+ - sudo apt-get -qq install libqt4-dev
4956
5057install :
5158 # - if [[ "$lt_source" == "from_dist" ]]; then sudo apt-get -qq install libtorrent-rasterbar-dev; fi
5259 - 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
5360 - 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
5461
5562script :
56- - ./bootstrap.sh
57- - ./configure $qbtconf && sudo make install
58-
63+ - if [ "$TRAVIS_BRANCH" = "$coverity_branch" ]; then exit ; fi # skip normal build when coverity is active
64+ - ./bootstrap.sh && ./configure $qbtconf
65+ - sudo make install
66+
5967after_success :
6068 - if $gui ; then qbittorrent --version ; else qbittorrent-nox --version ; fi
69+
70+ addons :
71+ coverity_scan :
72+ project :
73+ name : Chocobo1/qBittorrent
74+ description : " Build submitted via Travis CI"
75+ build_command_prepend : " ./bootstrap.sh && ./configure"
76+ build_command : make
77+ branch_pattern : $coverity_branch
78+ notification_email : Chocobo1@users.noreply.github.com
0 commit comments