Radek Krejci | afb9226 | 2016-01-19 10:04:48 +0100 | [diff] [blame] | 1 | os: linux |
2 | sudo: required | ||||
3 | dist: trusty | ||||
Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 4 | language: c |
Radek Krejci | 6757fae | 2015-06-15 14:42:01 +0200 | [diff] [blame] | 5 | |
Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 6 | compiler: |
Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 7 | - clang |
Radek Krejci | afb9226 | 2016-01-19 10:04:48 +0100 | [diff] [blame] | 8 | - gcc |
Radek Krejci | 6757fae | 2015-06-15 14:42:01 +0200 | [diff] [blame] | 9 | |
Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 10 | branches: |
11 | only: | ||||
12 | - master | ||||
Radek Krejci | 2bb207f | 2015-08-13 08:11:10 +0200 | [diff] [blame] | 13 | - devel |
Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 14 | |
Radek Krejci | 5936e19 | 2015-10-05 15:56:31 +0200 | [diff] [blame] | 15 | before_install: |
Radek Krejci | b1eb001 | 2015-10-05 16:29:13 +0200 | [diff] [blame] | 16 | - 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 Krejci | afb9226 | 2016-01-19 10:04:48 +0100 | [diff] [blame] | 19 | - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
Radek Krejci | 1f8d223 | 2015-10-05 16:34:12 +0200 | [diff] [blame] | 20 | - cd ../.. |
Radek Krejci | 49b4d24 | 2016-02-05 16:16:36 +0100 | [diff] [blame] | 21 | - if [ "${CC}" = "gcc" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi |
Radek Krejci | 5936e19 | 2015-10-05 15:56:31 +0200 | [diff] [blame] | 22 | |
Michal Vasko | fe4b7c7 | 2016-05-18 13:44:21 +0200 | [diff] [blame] | 23 | script: |
24 | - mkdir build && cd build && cmake .. && make -j2 && ctest -V | ||||
Radek Krejci | 6757fae | 2015-06-15 14:42:01 +0200 | [diff] [blame] | 25 | |
Radek Krejci | 1a7c6e0 | 2016-02-04 16:10:52 +0100 | [diff] [blame] | 26 | after_success: |
Radek Krejci | b13542a | 2016-02-04 16:52:07 +0100 | [diff] [blame] | 27 | - if [ "${CC}" = "gcc" ]; then codecov; fi |
Radek Krejci | 1a7c6e0 | 2016-02-04 16:10:52 +0100 | [diff] [blame] | 28 |