blob: 937676c4f3493a9ca65a32ef1bfe5dd9d91e8c46 [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 Krejcicd6b8682016-07-15 10:42:19 +02007
Michal Vasko4fefae32016-07-21 13:52:24 +02008# libssh
Radek Krejcib46988c2017-05-26 14:12:48 +02009wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz
10tar -xzf libssh-0.7.5.tar.gz
11mkdir libssh-0.7.5/build && cd libssh-0.7.5/build
Radek Krejci29364b82017-05-26 16:33:40 +020012cmake -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 +020013cd ../..
Radek Krejcicd6b8682016-07-15 10:42:19 +020014
Michal Vasko4fefae32016-07-21 13:52:24 +020015# CMocka
Radek Krejci29364b82017-05-26 16:33:40 +020016git clone git://git.cryptomilk.org/projects/cmocka.git
17mkdir cmocka/build && cd cmocka/build
18cmake .. && make -j2 && sudo make install
Michal Vasko4fefae32016-07-21 13:52:24 +020019cd ../..
Michal Vasko28c26632016-07-20 11:22:16 +020020
Michal Vasko8b47bf82018-02-16 15:51:45 +010021if [[ "$TRAVIS_BRANCH" = "master" ]]; then LY_BRANCH="master"; else LY_BRANCH="devel"; fi
22git clone -b $LY_BRANCH https://github.com/CESNET/libyang.git
Radek Krejcicd6b8682016-07-15 10:42:19 +020023mkdir 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 ../..