blob: e275ec8cd9d6f6809178fe3d5fabca76cf860809 [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
Michal Vasko1ab15af2018-11-09 10:21:12 +01009wget https://www.libssh.org/files/0.8/libssh-0.8.5.tar.xz
Michal Vasko21251102019-01-02 14:47:42 +010010tar -xJf libssh-0.8.5.tar.xz
Michal Vasko1ab15af2018-11-09 10:21:12 +010011mkdir libssh-0.8.5/build && cd libssh-0.8.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 ../..