.travis.yml 874 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 clean
  11. - make libhv examples unittest
  12. - os: osx
  13. compiler: clang
  14. env: COVERALLS=no
  15. scrit:
  16. - ./configure
  17. - make clean
  18. - make libhv examples unittest
  19. - os: windows
  20. env: COVERALLS=no
  21. script:
  22. - mkdir win64
  23. - cd win64
  24. - cmake .. -G "Visual Studio 15 2017 Win64"
  25. - cmake --build .
  26. before_script:
  27. - if [ "$COVERALLS" = "yes" ]; then
  28. pip install --user cpp-coveralls;
  29. export CC="$CC --coverage" CXX="$CXX --coverage";
  30. fi
  31. after_success:
  32. - if [ "$COVERALLS" = "yes" ]; then
  33. scripts/test-coverage.sh;
  34. coveralls --gcov-options '\-lp' --include base --include event --include http;
  35. fi