blob: c7b4000614fe40d09bed58608ab9721aeefa9a03 [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
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 ../..