blob: 28281a09e0158a4b3d6218b1be18d5a7ea0cae09 [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
Radek Krejcicb1acf22017-05-26 13:53:32 +020014wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz
15tar -xzf libssh-0.7.5.tar.gz
16mkdir libssh-0.7.5/build && cd libssh-0.7.5/build
Michal Vasko7f5c1c62016-07-21 13:42:53 +020017cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
18cd ../..
19
20# CMocka
21wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
22tar -xJf cmocka-1.0.1.tar.xz
23mkdir cmocka-1.0.1/build && cd cmocka-1.0.1/build
24cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
25cd ../..
26
27git clone -b $TRAVIS_BRANCH https://github.com/CESNET/libyang.git
28mkdir libyang/build && cd libyang/build
29cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
30cd ../..