aboutsummaryrefslogtreecommitdiffstats
path: root/coverity/coverity_test_osmo_trx.sh
blob: 75da893b34e5f2fcd7dc80fb0e6ca552ac257bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash

set -e -x

export PATH=~/coverity/cov-analysis-linux64-8.5.0/bin/:$PATH
export PKG_CONFIG_PATH=~/coverity/install/lib/pkgconfig

do_build() {
	git clean -dxf
	git remote prune origin
	git pull --rebase
	autoreconf --install --force
	./configure --prefix=$HOME/coverity/install $*

	cov-build --dir cov-int make
	make install
	tar czf myproject.tgz cov-int	
}

do_upload() {
	curl \
		--form token=$2 \
		--form email=holger@freyther.de --form file=@myproject.tgz \
		--form version=Version --form description=AutoUpload \
		https://scan.coverity.com/builds?project=$1
	:
}

upload_osmotrx() {
	pushd osmo-trx

	do_build
	#do_upload osmo-trx Insert-Coverity-Token-Here
	popd
}


cd source

upload_osmotrx