-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins-openBSC.sh
executable file
·64 lines (46 loc) · 1.22 KB
/
jenkins-openBSC.sh
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh -ex
artifact_deps() {
x="$($1 libosmocore)"
x="${x}_$($1 libosmo-abis)"
x="${x}_$($1 libosmo-netif)"
if [ "x$IU" = "x--enable-iu" ]; then
sccp_branch="old_sua"
fi
x="${x}_$($1 libosmo-sccp "$sccp_branch")"
x="${x}_$($1 libsmpp34)"
x="${x}_$($1 openggsn)"
if [ "x$IU" = "x--enable-iu" ]; then
x="${x}_$($1 libasn1c)"
x="${x}_$($1 osmo-iuh)"
fi
echo "${x}.tar.gz"
}
build_deps() {
osmo-build-dep.sh libosmocore master ac_cv_path_DOXYGEN=false
"$deps"/libosmocore/contrib/verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
osmo-build-dep.sh libosmo-abis
osmo-build-dep.sh libosmo-netif
if [ "x$IU" = "x--enable-iu" ]; then
sccp_branch="old_sua"
fi
osmo-build-dep.sh libosmo-sccp "$sccp_branch"
PARALLEL_MAKE=-j1 osmo-build-dep.sh libsmpp34
osmo-build-dep.sh openggsn
if [ "x$IU" = "x--enable-iu" ]; then
osmo-build-dep.sh libasn1c
osmo-build-dep.sh osmo-iuh
fi
}
build_project() {
cd "$base/openbsc"
autoreconf --install --force
./configure "$SMPP" "$MGCP" "$IU" \
--enable-osmo-bsc \
--enable-nat \
--enable-vty-tests \
--enable-external-tests
"$MAKE" "$PARALLEL_MAKE"
"$MAKE" check || cat-testlogs.sh
"$MAKE" distcheck || cat-testlogs.sh
}
. osmo-build.sh