Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | #install dependencies using homebrew |
| 5 | brew update |
| 6 | brew upgrade openssl |
| 7 | brew link --force openssl |
| 8 | brew install pcre |
| 9 | |
| 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 ../.. |
| 16 | |
| 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 ../.. |
| 23 | |
| 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 ../.. |