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