Advertisement
yumetodo

travis_ci_yml

Jul 18th, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. compiler:
  2. - clang
  3. - gcc
  4. cache:
  5. apt: true
  6. addons:
  7. apt:
  8. sources:
  9. - ubuntu-toolchain-r-test
  10. - llvm-toolchain-precise-3.8
  11. - llvm-toolchain-precise
  12. packages:
  13. - lcov
  14. - rubygems
  15. - clang-3.8
  16. - g++-5
  17. - gcc-5
  18. before_install: git submodule update --init
  19. install:
  20. - export PLATFORM=$(uname -s)
  21. - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5" CCOV="gcov-5" USE_COVERAGE="lcov" USE_COVERALLS=1; fi
  22. - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
  23. - |
  24. if [ "${USE_COVERALLS}" = '1' ]; then
  25. if [ "${USE_COVERAGE}" = 'gcov' ]; then easy_install cpp-coveralls; fi
  26. if [ "${USE_COVERAGE}" = 'lcov' ]; then gem install lcoveralls; fi
  27. fi
  28. language: cpp
  29. script:
  30. # - chmod a+x ./test.sh
  31. - make Release USE_COVERAGE=0 && ./test/test.out && ./sample/sample.out && make clean && make Debug && ./test/test.out && ./sample/sample.out
  32. after_success:
  33. # Coverage
  34. - if [ "${USE_COVERALLS}" = '1' ]; then cd ./test; make send-coveralls; fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement