blob: b5a26bb9c379eae9804316f48559aa127ccd0ada [file] [log] [blame]
Michal Vasko7f5c1c62016-07-21 13:42:53 +02001#!/bin/sh
2set -e
3
4sudo apt-get update -qq
5sudo apt-get install -y zlib1g-dev
6sudo apt-get install -y libssl-dev
7sudo apt-get install -y libval-dev
8sudo apt-get install -y valgrind
PavolVican384786e2017-07-12 15:31:20 +02009sudo apt-get install -y osc
Michal Vasko7f5c1c62016-07-21 13:42:53 +020010
11echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
12
13# libssh
Michal Vasko1ab15af2018-11-09 10:21:12 +010014wget https://www.libssh.org/files/0.8/libssh-0.8.5.tar.xz
15tar -xJf libssh-0.8.5.tar.xz
16mkdir libssh-0.8.5/build && cd libssh-0.8.5/build
Michal Vasko7f5c1c62016-07-21 13:42:53 +020017cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
18cd ../..
19
20# CMocka
Radek Krejci289e3a22018-05-17 08:57:21 +020021wget https://cmocka.org/files/1.1/cmocka-1.1.1.tar.xz
22tar -xJf cmocka-1.1.1.tar.xz
23mkdir cmocka-1.1.1/build && cd cmocka-1.1.1/build
Michal Vasko7f5c1c62016-07-21 13:42:53 +020024cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
25cd ../..
26
Michal Vasko8b47bf82018-02-16 15:51:45 +010027if [[ "$TRAVIS_BRANCH" = "master" ]]; then LY_BRANCH="master"; else LY_BRANCH="devel"; fi
28git clone -b $LY_BRANCH https://github.com/CESNET/libyang.git
Michal Vasko7f5c1c62016-07-21 13:42:53 +020029mkdir libyang/build && cd libyang/build
30cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
31cd ../..