CI: Deprecate Jenkins Sonar jobs
[ci-management.git] / jjb / ric-plt-sdl / setup-sdl-build-deb.sh
1 #!/bin/bash
2 ##############################################################################
3 #
4 #   Copyright (c) 2020 AT&T Intellectual Property.
5 #   Copyright (c) 2020 Nokia.
6 #
7 #   Licensed under the Apache License, Version 2.0 (the "License");
8 #   you may not use this file except in compliance with the License.
9 #   You may obtain a copy of the License at
10 #
11 #       http://www.apache.org/licenses/LICENSE-2.0
12 #
13 #   Unless required by applicable law or agreed to in writing, software
14 #   distributed under the License is distributed on an "AS IS" BASIS,
15 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #   See the License for the specific language governing permissions and
17 #   limitations under the License.
18 #
19 ##############################################################################
20
21 # Installs prerequisites needed to compile & test SDL code
22 # and build RPM/DEB packages on a Debian/Ubuntu machine.
23
24 echo "--> setup-sdl-build-deb.sh"
25
26 # Ensure we fail the job if any steps fail.
27 set -eux -o pipefail
28
29 # install prereqs
30 sudo apt-get update && sudo apt-get -q -y install \
31   autoconf-archive libhiredis-dev rpm valgrind \
32   libboost-filesystem-dev libboost-program-options-dev libboost-system-dev
33
34 # generate configure script
35 autoreconf --install
36
37 echo "--> setup-sdl-build-deb.sh ends"