blob: 7d37e1c0ac29242b84b89770485e4a1c1564bf1c [file] [log] [blame]
Radek Krejciafb92262016-01-19 10:04:48 +01001os: linux
2sudo: required
3dist: trusty
Radek Krejci1ba11c42015-06-15 13:40:36 +02004language: c
Radek Krejci6757fae2015-06-15 14:42:01 +02005
Radek Krejci1ba11c42015-06-15 13:40:36 +02006compiler:
Radek Krejci1ba11c42015-06-15 13:40:36 +02007 - clang
Radek Krejciafb92262016-01-19 10:04:48 +01008 - gcc
Radek Krejci6757fae2015-06-15 14:42:01 +02009
Radek Krejci1ba11c42015-06-15 13:40:36 +020010branches:
11 only:
12 - master
Radek Krejci2bb207f2015-08-13 08:11:10 +020013 - devel
Radek Krejci1ba11c42015-06-15 13:40:36 +020014
Radek Krejci5936e192015-10-05 15:56:31 +020015before_install:
Radek Krejcib1eb0012015-10-05 16:29:13 +020016 - wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz
17 - tar -xJvf cmocka-1.0.1.tar.xz
18 - cd cmocka-1.0.1 && mkdir build && cd build
Radek Krejciafb92262016-01-19 10:04:48 +010019 - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install
Radek Krejci1f8d2232015-10-05 16:34:12 +020020 - cd ../..
Radek Krejci49b4d242016-02-05 16:16:36 +010021 - if [ "${CC}" = "gcc" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi
Radek Krejci5936e192015-10-05 15:56:31 +020022
Michal Vaskofe4b7c72016-05-18 13:44:21 +020023script:
24 - mkdir build && cd build && cmake .. && make -j2 && ctest -V
Radek Krejci6757fae2015-06-15 14:42:01 +020025
Radek Krejci1a7c6e02016-02-04 16:10:52 +010026after_success:
Radek Krejcib13542a2016-02-04 16:52:07 +010027 - if [ "${CC}" = "gcc" ]; then codecov; fi
Radek Krejci1a7c6e02016-02-04 16:10:52 +010028