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 | b46988c | 2017-05-26 14:12:48 +0200 | [diff] [blame] | 7 | brew upgrade pcre |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 8 | |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 9 | # libssh |
Radek Krejci | b46988c | 2017-05-26 14:12:48 +0200 | [diff] [blame] | 10 | wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz |
| 11 | tar -xzf libssh-0.7.5.tar.gz |
| 12 | mkdir libssh-0.7.5/build && cd libssh-0.7.5/build |
Radek Krejci | 29364b8 | 2017-05-26 16:33:40 +0200 | [diff] [blame] | 13 | 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] | 14 | cd ../.. |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 15 | |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 16 | # CMocka |
Radek Krejci | 29364b8 | 2017-05-26 16:33:40 +0200 | [diff] [blame] | 17 | git clone git://git.cryptomilk.org/projects/cmocka.git |
| 18 | mkdir cmocka/build && cd cmocka/build |
| 19 | cmake .. && make -j2 && sudo make install |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 20 | cd ../.. |
Michal Vasko | 28c2663 | 2016-07-20 11:22:16 +0200 | [diff] [blame] | 21 | |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 22 | git clone -b $TRAVIS_BRANCH https://github.com/CESNET/libyang.git |
| 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 ../.. |