.travis.yml 864 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. language: cpp
  2. jobs:
  3. include:
  4. - os: linux
  5. dist: xenial
  6. compiler: gcc
  7. env: COVERALLS=no
  8. script:
  9. - ./configure
  10. - make libhv examples unittest evpp
  11. - os: osx
  12. compiler: clang
  13. env: COVERALLS=no
  14. script:
  15. - ./configure
  16. - make libhv examples unittest evpp
  17. - os: windows
  18. compiler: msvc
  19. env: COVERALLS=no
  20. script:
  21. - mkdir win64
  22. - cd win64
  23. - cmake .. -G "Visual Studio 15 2017 Win64"
  24. - cmake --build .
  25. before_script:
  26. - if [ "$COVERALLS" = "yes" ]; then
  27. pip install --user cpp-coveralls;
  28. export CC="$CC --coverage" CXX="$CXX --coverage";
  29. fi
  30. after_success:
  31. - if [ "$COVERALLS" = "yes" ]; then
  32. scripts/test-coverage.sh;
  33. coveralls --gcov-options '\-lp' --include base --include event --include http;
  34. fi