blob: 66a8a8f62157fa04b91fe6d90eebb682b63c3bd0 [file] [log] [blame]
Michal Vasko4fefae32016-07-21 13:52:24 +02001#!/bin/sh
2set -e
3
Radek Krejcicd6b8682016-07-15 10:42:19 +02004#install dependencies using homebrew
5brew update
Radek Krejcida3c2212016-07-15 12:49:13 +02006brew upgrade openssl
Michal Vaskoc0541c82016-07-20 11:56:00 +02007brew link --force openssl
Radek Krejcib46988c2017-05-26 14:12:48 +02008brew upgrade pcre
Radek Krejcicd6b8682016-07-15 10:42:19 +02009
Michal Vasko4fefae32016-07-21 13:52:24 +020010# libssh
Radek Krejcib46988c2017-05-26 14:12:48 +020011wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz
12tar -xzf libssh-0.7.5.tar.gz
13mkdir libssh-0.7.5/build && cd libssh-0.7.5/build
Michal Vasko4fefae32016-07-21 13:52:24 +020014cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
15cd ../..
Radek Krejcicd6b8682016-07-15 10:42:19 +020016
Michal Vasko4fefae32016-07-21 13:52:24 +020017# CMocka
18wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
19tar -xJf cmocka-1.0.1.tar.xz
20mkdir cmocka-1.0.1/build && cd cmocka-1.0.1/build
21cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
22cd ../..
Michal Vasko28c26632016-07-20 11:22:16 +020023
Radek Krejcicd6b8682016-07-15 10:42:19 +020024git clone -b $TRAVIS_BRANCH https://github.com/CESNET/libyang.git
25mkdir libyang/build && cd libyang/build
26cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
27cd ../..