blob: 80a6115f6a9d67a617b8a3e6066dfa001f0f0550 [file] [log] [blame]
Radek Krejcic22fd3a2016-01-19 14:14:32 +01001os: linux
2sudo: required
3dist: trusty
4language: c
5
6compiler:
7 - clang
8 - gcc
9
10branches:
11 only:
12 - master
13 - devel
14
15before_install:
16 - sudo apt-get install -y zlib1g-dev
17 - sudo apt-get install -y libssl-dev
Michal Vasko88408892016-02-09 14:23:19 +010018 - wget https://red.libssh.org/attachments/download/177/libssh-0.7.2.tar.xz
19 - tar -xJf libssh-0.7.2.tar.xz
20 - mkdir libssh-0.7.2/build && cd libssh-0.7.2/build
Radek Krejcic22fd3a2016-01-19 14:14:32 +010021 - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
22 - cd ../..
23
24 - wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
25 - tar -xJf cmocka-1.0.1.tar.xz
26 - mkdir cmocka-1.0.1/build && cd cmocka-1.0.1/build
27 - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
28 - cd ../..
29
Radek Krejcic22fd3a2016-01-19 14:14:32 +010030 - git clone https://github.com/CESNET/libyang.git
31 - mkdir libyang/build && cd libyang/build
32 - git checkout devel
33 - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
34 - cd ../..
35
Radek Krejcic1bf9bf2016-02-04 17:20:37 +010036 - if [ "${CC}" = "gcc" ]; then pip install --user codecov; fi
37
Radek Krejcic22fd3a2016-01-19 14:14:32 +010038script:
Michal Vasko6b7b4bd2016-02-09 14:19:07 +010039 - mkdir build && cd build ; cmake -DENABLE_TLS=ON -DENABLE_SSH=ON .. && make -j2 && ./tests/test_server_thread && make test
Radek Krejcic22fd3a2016-01-19 14:14:32 +010040
Radek Krejcic1bf9bf2016-02-04 17:20:37 +010041after_success:
Radek Krejci1cbe0b12016-02-04 18:00:37 +010042 - if [ "${CC}" = "gcc" ]; then codecov; fi
Radek Krejcic1bf9bf2016-02-04 17:20:37 +010043