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 |
Radek Krejci | cb1acf2 | 2017-05-26 13:53:32 +0200 | [diff] [blame] | 14 | wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz |
| 15 | tar -xzf libssh-0.7.5.tar.gz |
| 16 | mkdir libssh-0.7.5/build && cd libssh-0.7.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 |
| 21 | wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz |
| 22 | tar -xJf cmocka-1.0.1.tar.xz |
| 23 | mkdir cmocka-1.0.1/build && cd cmocka-1.0.1/build |
| 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 ../.. |