blob: 4cc8e8edfc3261a281e0cc9aad3dc3643fbe1ab8 [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 Krejcicd6b8682016-07-15 10:42:19 +02008brew install pcre
9
Michal Vasko4fefae32016-07-21 13:52:24 +020010# libssh
11wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.3.tar.bz2
12tar -xjf libssh-0.7.3.tar.bz2
13mkdir libssh-0.7.3/build && cd libssh-0.7.3/build
14cmake -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 ../..