summaryrefslogtreecommitdiffstats
path: root/coverity/coverity_iuh.sh
blob: 3007dda8aaebfb768c51ce17a333401ee237275d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

set -e -x

base_dir="$PWD"
src_dir="$base_dir/source-iuh"
cov_dir="$src_dir/cov-int"

export PATH="$base_dir/cov-analysis-linux64-8.5.0/bin/:$PATH"

rm -rf "$cov_dir"
cov-build --dir "$cov_dir" ./build_iuh.sh

cd "$src_dir"
rm -f myproject.tgz
tar czf myproject.tgz cov-int

	curl \
		--form token="$($base_dir/get_token.sh $base_dir/tokens.txt iuh)" \
		--form email=holger@freyther.de --form file=@myproject.tgz \
		--form version=Version --form description=AutoUpload \
		https://scan.coverity.com/builds?project=Osmocom