blob: 2c42b87e4e32b913c1d128487465713e84a704e4 [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
Radek Krejcib46988c2017-05-26 14:12:48 +02007brew upgrade pcre
Radek Krejcicd6b8682016-07-15 10:42:19 +02008
Michal Vasko4fefae32016-07-21 13:52:24 +02009# libssh
Radek Krejcib46988c2017-05-26 14:12:48 +020010wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz
11tar -xzf libssh-0.7.5.tar.gz
12mkdir libssh-0.7.5/build && cd libssh-0.7.5/build
Radek Krejci29364b82017-05-26 16:33:40 +020013cmake -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include .. && make -j2 && sudo make install
Michal Vasko4fefae32016-07-21 13:52:24 +020014cd ../..
Radek Krejcicd6b8682016-07-15 10:42:19 +020015
Michal Vasko4fefae32016-07-21 13:52:24 +020016# CMocka
Radek Krejci29364b82017-05-26 16:33:40 +020017git clone git://git.cryptomilk.org/projects/cmocka.git
18mkdir cmocka/build && cd cmocka/build
19cmake .. && make -j2 && sudo make install
Michal Vasko4fefae32016-07-21 13:52:24 +020020cd ../..
Michal Vasko28c26632016-07-20 11:22:16 +020021
Radek Krejcicd6b8682016-07-15 10:42:19 +020022git clone -b $TRAVIS_BRANCH https://github.com/CESNET/libyang.git
23mkdir libyang/build && cd libyang/build
Radek Krejci29364b82017-05-26 16:33:40 +020024cmake .. && make -j2 && sudo make install
Radek Krejcicd6b8682016-07-15 10:42:19 +020025cd ../..