Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 1 | language: c |
Radek Krejci | 6757fae | 2015-06-15 14:42:01 +0200 | [diff] [blame] | 2 | |
Radek Krejci | a028759 | 2016-07-19 14:04:07 +0200 | [diff] [blame^] | 3 | matrix: |
| 4 | include: |
| 5 | - os: linux |
| 6 | dist: trusty |
| 7 | sudo: required |
| 8 | compiler: clang |
| 9 | - os: linux |
| 10 | dist: trusty |
| 11 | sudo: required |
| 12 | compiler: gcc |
| 13 | - os: osx |
| 14 | compiler: gcc |
| 15 | allow_failures: |
| 16 | - os: osx |
Radek Krejci | 6757fae | 2015-06-15 14:42:01 +0200 | [diff] [blame] | 17 | |
Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 18 | branches: |
| 19 | only: |
| 20 | - master |
Radek Krejci | 2bb207f | 2015-08-13 08:11:10 +0200 | [diff] [blame] | 21 | - devel |
Radek Krejci | 1ba11c4 | 2015-06-15 13:40:36 +0200 | [diff] [blame] | 22 | |
Radek Krejci | 5936e19 | 2015-10-05 15:56:31 +0200 | [diff] [blame] | 23 | before_install: |
Radek Krejci | b1eb001 | 2015-10-05 16:29:13 +0200 | [diff] [blame] | 24 | - wget https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz |
| 25 | - tar -xJvf cmocka-1.0.1.tar.xz |
| 26 | - cd cmocka-1.0.1 && mkdir build && cd build |
Radek Krejci | afb9226 | 2016-01-19 10:04:48 +0100 | [diff] [blame] | 27 | - cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. && make -j2 && sudo make install |
Radek Krejci | 1f8d223 | 2015-10-05 16:34:12 +0200 | [diff] [blame] | 28 | - cd ../.. |
Radek Krejci | a028759 | 2016-07-19 14:04:07 +0200 | [diff] [blame^] | 29 | - if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi |
Radek Krejci | 5936e19 | 2015-10-05 15:56:31 +0200 | [diff] [blame] | 30 | |
Michal Vasko | fe4b7c7 | 2016-05-18 13:44:21 +0200 | [diff] [blame] | 31 | script: |
| 32 | - mkdir build && cd build && cmake .. && make -j2 && ctest -V |
Radek Krejci | 6757fae | 2015-06-15 14:42:01 +0200 | [diff] [blame] | 33 | |
Radek Krejci | 1a7c6e0 | 2016-02-04 16:10:52 +0100 | [diff] [blame] | 34 | after_success: |
Radek Krejci | a028759 | 2016-07-19 14:04:07 +0200 | [diff] [blame^] | 35 | - if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" ]; then codecov; fi |
Radek Krejci | 1a7c6e0 | 2016-02-04 16:10:52 +0100 | [diff] [blame] | 36 | |