Radek Krejci | c22fd3a | 2016-01-19 14:14:32 +0100 | [diff] [blame] | 1 | language: c |
| 2 | |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +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 | c22fd3a | 2016-01-19 14:14:32 +0100 | [diff] [blame] | 17 | |
| 18 | branches: |
| 19 | only: |
| 20 | - master |
| 21 | - devel |
| 22 | |
| 23 | before_install: |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame^] | 24 | - if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash .travis-deps-linux.sh; fi |
| 25 | - if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi |
| 26 | - if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash .travis-deps-osx.sh; fi |
Radek Krejci | c1bf9bf | 2016-02-04 17:20:37 +0100 | [diff] [blame] | 27 | |
Michal Vasko | 50c8d3e | 2016-02-25 15:03:15 +0100 | [diff] [blame] | 28 | script: |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame^] | 29 | - cd $TRAVIS_BUILD_DIR && mkdir build_none && cd build_none ; cmake -DENABLE_TLS=OFF -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && make test |
| 30 | - cd $TRAVIS_BUILD_DIR && mkdir build_tls && cd build_tls ; cmake -DENABLE_TLS=ON -DENABLE_SSH=OFF -DENABLE_DNSSEC=OFF .. && make -j2 && make test |
| 31 | - cd $TRAVIS_BUILD_DIR && mkdir build_ssh && cd build_ssh ; cmake -DENABLE_TLS=OFF -DENABLE_SSH=ON -DENABLE_DNSSEC=OFF .. && make -j2 && make test |
| 32 | - cd $TRAVIS_BUILD_DIR && mkdir build_ssh_tls && cd build_ssh_tls ; cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_DNSSEC=OFF .. && make -j2 && make test |
| 33 | - cd $TRAVIS_BUILD_DIR && mkdir build_all && cd build_all ; cmake -DENABLE_TLS=ON -DENABLE_SSH=ON -DENABLE_DNSSEC=ON .. && make -j2 && make test |
Radek Krejci | c22fd3a | 2016-01-19 14:14:32 +0100 | [diff] [blame] | 34 | |
Radek Krejci | c1bf9bf | 2016-02-04 17:20:37 +0100 | [diff] [blame] | 35 | after_success: |
Michal Vasko | 7f5c1c6 | 2016-07-21 13:42:53 +0200 | [diff] [blame^] | 36 | - if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" ]; then codecov; fi |