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 |
PavolVican | 384786e | 2017-07-12 15:31:20 +0200 | [diff] [blame] | 9 | sudo apt-get install -y osc |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame] | 10 | |
| 11 | 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 |
| 12 | |
| 13 | # libssh |
Michal Vasko | 1ab15af | 2018-11-09 10:21:12 +0100 | [diff] [blame] | 14 | wget https://www.libssh.org/files/0.8/libssh-0.8.5.tar.xz |
| 15 | tar -xJf libssh-0.8.5.tar.xz |
| 16 | mkdir libssh-0.8.5/build && cd libssh-0.8.5/build |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame] | 17 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 18 | cd ../.. |
| 19 | |
| 20 | # CMocka |
Radek Krejci | 289e3a2 | 2018-05-17 08:57:21 +0200 | [diff] [blame] | 21 | wget https://cmocka.org/files/1.1/cmocka-1.1.1.tar.xz |
| 22 | tar -xJf cmocka-1.1.1.tar.xz |
| 23 | mkdir cmocka-1.1.1/build && cd cmocka-1.1.1/build |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame] | 24 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 25 | cd ../.. |
| 26 | |
Michal Vasko | 8b47bf8 | 2018-02-16 15:51:45 +0100 | [diff] [blame] | 27 | if [[ "$TRAVIS_BRANCH" = "master" ]]; then LY_BRANCH="master"; else LY_BRANCH="devel"; fi |
| 28 | git clone -b $LY_BRANCH https://github.com/CESNET/libyang.git |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame] | 29 | mkdir libyang/build && cd libyang/build |
| 30 | cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 31 | cd ../.. |