Radek Krejci | c22fd3a | 2016-01-19 14:14:32 +0100 | [diff] [blame^] | 1 | os: linux |
| 2 | sudo: required |
| 3 | dist: trusty |
| 4 | language: c |
| 5 | |
| 6 | compiler: |
| 7 | - clang |
| 8 | - gcc |
| 9 | |
| 10 | branches: |
| 11 | only: |
| 12 | - master |
| 13 | - devel |
| 14 | |
| 15 | before_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 | |
| 30 | - sudo apt-get install -y libpcre-dev |
| 31 | - git clone https://github.com/CESNET/libyang.git |
| 32 | - mkdir libyang/build && cd libyang/build |
| 33 | - git checkout devel |
| 34 | - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
| 35 | - cd ../.. |
| 36 | |
| 37 | #env: |
| 38 | # global: |
| 39 | # # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created |
| 40 | # # via the "travis encrypt" command using the project repo's public key |
| 41 | # - secure: "" |
| 42 | |
| 43 | #addons: |
| 44 | # coverity_scan: |
| 45 | # project: |
| 46 | # name: "CESNET/libnetconf2" |
| 47 | # notification_email: rkrejci@cesnet.cz |
| 48 | # build_command_prepend: "mkdir build ; cd build ; cmake .. ; make clean" |
| 49 | # build_command: "make" |
| 50 | # branch_pattern: coverity |
| 51 | |
| 52 | script: |
| 53 | - mkdir build && cd build ; cmake .. && make -j2 && make test |
| 54 | |