blob: 2a3926a3e4cbd585cbedea0fa38ba699c6428082 [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
Michal Vasko750d3b22016-09-30 13:18:40 +020013wget https://red.libssh.org/attachments/download/195/libssh-0.7.3.tar.xz
Michal Vasko135deea2016-09-30 13:47:02 +020014tar -xJf libssh-0.7.3.tar.xz
Michal Vasko7f5c1c62016-07-21 13:42:53 +020015mkdir libssh-0.7.3/build && cd libssh-0.7.3/build
16cmake -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 ../..