Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 4 | #install dependencies using homebrew |
| 5 | brew update |
Radek Krejci | da3c221 | 2016-07-15 12:49:13 +0200 | [diff] [blame] | 6 | brew upgrade openssl |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 7 | |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 8 | # libssh |
Radek Krejci | b46988c | 2017-05-26 14:12:48 +0200 | [diff] [blame] | 9 | wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz |
| 10 | tar -xzf libssh-0.7.5.tar.gz |
| 11 | mkdir libssh-0.7.5/build && cd libssh-0.7.5/build |
Radek Krejci | 29364b8 | 2017-05-26 16:33:40 +0200 | [diff] [blame] | 12 | cmake -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include .. && make -j2 && sudo make install |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 13 | cd ../.. |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 14 | |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 15 | # CMocka |
Radek Krejci | 29364b8 | 2017-05-26 16:33:40 +0200 | [diff] [blame] | 16 | git clone git://git.cryptomilk.org/projects/cmocka.git |
| 17 | mkdir cmocka/build && cd cmocka/build |
| 18 | cmake .. && make -j2 && sudo make install |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 19 | cd ../.. |
Michal Vasko | 28c2663 | 2016-07-20 11:22:16 +0200 | [diff] [blame] | 20 | |
Michal Vasko | 8b47bf8 | 2018-02-16 15:51:45 +0100 | [diff] [blame] | 21 | if [[ "$TRAVIS_BRANCH" = "master" ]]; then LY_BRANCH="master"; else LY_BRANCH="devel"; fi |
| 22 | git clone -b $LY_BRANCH https://github.com/CESNET/libyang.git |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 23 | mkdir libyang/build && cd libyang/build |
Radek Krejci | 29364b8 | 2017-05-26 16:33:40 +0200 | [diff] [blame] | 24 | cmake .. && make -j2 && sudo make install |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 25 | cd ../.. |