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 |
Michal Vasko | c0541c8 | 2016-07-20 11:56:00 +0200 | [diff] [blame] | 7 | brew link --force openssl |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 8 | brew install pcre |
| 9 | |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 10 | # libssh |
| 11 | wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.3.tar.bz2 |
| 12 | tar -xjf libssh-0.7.3.tar.bz2 |
| 13 | mkdir libssh-0.7.3/build && cd libssh-0.7.3/build |
| 14 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 15 | cd ../.. |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 16 | |
Michal Vasko | 4fefae3 | 2016-07-21 13:52:24 +0200 | [diff] [blame] | 17 | # CMocka |
| 18 | wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz |
| 19 | tar -xJf cmocka-1.0.1.tar.xz |
| 20 | mkdir cmocka-1.0.1/build && cd cmocka-1.0.1/build |
| 21 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 22 | cd ../.. |
Michal Vasko | 28c2663 | 2016-07-20 11:22:16 +0200 | [diff] [blame] | 23 | |
Radek Krejci | cd6b868 | 2016-07-15 10:42:19 +0200 | [diff] [blame] | 24 | git clone -b $TRAVIS_BRANCH https://github.com/CESNET/libyang.git |
| 25 | mkdir libyang/build && cd libyang/build |
| 26 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 27 | cd ../.. |