Codebase list fstrm / 075e0a73-366d-4663-a9b2-eb4d6698eefd/main .travis.yml
075e0a73-366d-4663-a9b2-eb4d6698eefd/main

Tree @075e0a73-366d-4663-a9b2-eb4d6698eefd/main (Download .tar.gz)

.travis.yml @075e0a73-366d-4663-a9b2-eb4d6698eefd/mainraw · history · blame

language: c

os:
  - linux
  - osx

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required

before_install:
  # Linux
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi

install:
  # Linux
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq install libevent-dev valgrind lcov; fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo pip install cpp-coveralls; fi

script:
  - ./autogen.sh
  - ./configure
  - make
  - make distcheck VERBOSE=1

  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then make clean; ./configure --enable-valgrind-tests && make distcheck VERBOSE=1 DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests"; fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then make clean; ./configure --enable-code-coverage CFLAGS="" && make && make check; fi

after_success:
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then cpp-coveralls --build-root . --exclude libmy/ --exclude src/ --exclude t/ --exclude /usr/include; fi