blob: 4cc8e8edfc3261a281e0cc9aad3dc3643fbe1ab8 [file] [log] [blame]
Michal Vasko7f5c1c62016-07-21 13:42:53 +02001#!/bin/sh
2set -e
3
4#install dependencies using homebrew
5brew update
6brew upgrade openssl
7brew link --force openssl
8brew install pcre
9
10# 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 ../..
16
17# 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 ../..
23
24git 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 ../..