.travis.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. language: cpp
  2. compiler:
  3. - gcc
  4. before_install:
  5. - sudo apt-get install python-yaml libyaml-dev build-essential libssh2-1-dev libarchive-dev clang
  6. - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  7. - sudo apt-get update
  8. - sudo apt-get install gcc-4.8 g++-4.8
  9. - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
  10. - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
  11. - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 20
  12. - sudo update-alternatives --config gcc
  13. - sudo update-alternatives --config g++
  14. - sudo update-alternatives --config gcov
  15. - sudo pip install cpp-coveralls
  16. script:
  17. - make
  18. - tar cvf include.tar.gz include/
  19. - ./yabs -h
  20. - ./yabs -n
  21. - ./yabs -p test/yabs.yml
  22. - ./yabs -p test/yabs-include.yml
  23. - ./yabs -d yabs.ybf
  24. - ./yabs -p yabs.pro
  25. - ./yabs -p yabs.ybf
  26. - ./yabs -p test/alias.yml
  27. - ./yabs -p test/ball_clubs.yml
  28. - ./yabs -p test/ball_players.yml
  29. - ./yabs -p test/block_literal.yml
  30. - ./yabs -p test/bool.yml
  31. - ./yabs -p test/complex_key.yml
  32. - ./yabs -p test/csv.yml
  33. - ./yabs -p test/key-values.yml
  34. - ./yabs -p test/map_map.yml
  35. - ./yabs -p test/multi_line_scalar.yml
  36. - ./yabs -p test/multiple_player_stat.yml
  37. - ./yabs -p test/plain_scalar.yml
  38. - ./yabs -p test/player_stat.yml
  39. - ./yabs -p test/quoted_scalar.yml
  40. - ./yabs -e include.tar.gz
  41. after_script:
  42. - gcov yabs.gcda
  43. - coveralls --exclude include
  44. - make clean
  45. - qmake-qt4 "CONFIG+=clang"
  46. - make
  47. notifications:
  48. email:
  49. recipients:
  50. - albcoron@gmail.com
  51. - alberto@0x1a.us
  52. on_failure: always
  53. on_success: change
  54. branches:
  55. only:
  56. - master