Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | sudo apt-get update -qq |
| 5 | sudo apt-get install -y zlib1g-dev |
| 6 | sudo apt-get install -y libssl-dev |
| 7 | sudo apt-get install -y libval-dev |
| 8 | sudo apt-get install -y valgrind |
| 9 | |
| 10 | echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt |
| 11 | |
| 12 | # libssh |
Radek Krejci | 26a8115 | 2017-05-26 13:53:32 +0200 | [diff] [blame] | 13 | wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz |
| 14 | tar -xzf libssh-0.7.5.tar.gz |
| 15 | mkdir libssh-0.7.5/build && cd libssh-0.7.5/build |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame] | 16 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 17 | cd ../.. |
| 18 | |
| 19 | # CMocka |
| 20 | wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz |
| 21 | tar -xJf cmocka-1.0.1.tar.xz |
| 22 | mkdir cmocka-1.0.1/build && cd cmocka-1.0.1/build |
| 23 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 24 | cd ../.. |
| 25 | |
| 26 | git clone -b $TRAVIS_BRANCH https://github.com/CESNET/libyang.git |
| 27 | mkdir libyang/build && cd libyang/build |
| 28 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 29 | cd ../.. |