Skip to content

Commit 04300c1

Browse files
committed
Hookup to Coverity Scan, Closes qbittorrent#2601
1 parent 24c2f73 commit 04300c1

2 files changed

Lines changed: 35 additions & 17 deletions

File tree

.travis.yml

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ language:
22
- cpp
33

44
env:
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

1519
branches:
1620
except:
@@ -20,9 +24,12 @@ branches:
2024
notifications:
2125
email:
2226
on_success: change
23-
on_failure: change
27+
on_failure: change
2428

2529
before_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

5057
install:
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

5562
script:
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+
5967
after_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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
qBittorrent - A BitTorrent client in Qt
22
------------------------------------------
33

4-
[![Build Status](https://travis-ci.org/qbittorrent/qBittorrent.png?branch=master)](https://travis-ci.org/qbittorrent/qBittorrent)
4+
[![Build Status](https://travis-ci.org/qbittorrent/qBittorrent.svg?branch=master)](https://travis-ci.org/qbittorrent/qBittorrent)
5+
[![Coverity Status](https://scan.coverity.com/projects/4490/badge.svg)](https://scan.coverity.com/projects/4490)
56
********************************
6-
###Description:
7+
### Description:
78
qBittorrent is a bittorrent client programmed in C++ / Qt that uses
89
libtorrent (sometimes called libtorrent-rasterbar) by Arvid Norberg.
910

@@ -39,4 +40,3 @@ You can also meet me (sledgehammer_999) on IRC:
3940

4041
------------------------------------------
4142
sledgehammer999 <sledgehammer999@qbittorrent.org>
42-

0 commit comments

Comments
 (0)