blob: e9111fcca8ecce980fc843d3b801fed3dbfa1940 [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
18 - wget https://red.libssh.org/attachments/download/121/libssh-0.6.5.tar.xz
19 - tar -xJf libssh-0.6.5.tar.xz
20 - mkdir libssh-0.6.5/build && cd libssh-0.6.5/build
21 - 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
36#env:
37# global:
38# # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
39# # via the "travis encrypt" command using the project repo's public key
40# - secure: ""
41
42#addons:
43# coverity_scan:
44# project:
45# name: "CESNET/libnetconf2"
46# notification_email: rkrejci@cesnet.cz
47# build_command_prepend: "mkdir build ; cd build ; cmake .. ; make clean"
48# build_command: "make"
49# branch_pattern: coverity
50
51script:
Radek Krejci299b9f52016-01-19 14:21:38 +010052 - mkdir build && cd build ; cmake -DENABLE_TLS=ON -DENABLE_SSH=ON .. && make -j2 && make test
Radek Krejcic22fd3a2016-01-19 14:14:32 +010053