.travis.yml 460 B

123456789101112131415161718192021222324252627282930
  1. language: cpp
  2. dist: xenial
  3. addons:
  4. apt:
  5. packages:
  6. - libgtest-dev
  7. - libhdf4-dev
  8. compiler:
  9. - clang
  10. - gcc
  11. install:
  12. - mkdir gtest
  13. - cd gtest
  14. - cmake /usr/src/gtest
  15. - make --jobs=$(nproc)
  16. - cd ..
  17. script:
  18. # https://cmake.org/cmake/help/v3.12/module/FindGTest.html
  19. - GTEST_ROOT="$PWD/gtest"
  20. cmake
  21. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
  22. -DCMAKE_CXX_CLANG_TIDY='clang-tidy;-p=compile_commands.json'
  23. .
  24. - make --jobs=$(nproc)
  25. - tests/hdf4cpp-tests