.travis.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. language: cpp
  2. before_install:
  3. #new boost
  4. - sudo add-apt-repository --yes ppa:boost-latest/ppa
  5. #new GCC
  6. - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
  7. #new Clang
  8. - sudo add-apt-repository --yes ppa:h-rayflood/llvm
  9. #new SDL2
  10. - sudo add-apt-repository --yes ppa:zoogie/sdl2-snapshots
  11. #new Qt
  12. - sudo add-apt-repository --yes ppa:beineri/opt-qt532
  13. #new FFmpeg
  14. - sudo add-apt-repository --yes ppa:jon-severinsson/ffmpeg
  15. #new CMake
  16. - sudo add-apt-repository --yes ppa:andykimpe/cmake
  17. - sudo apt-get update -qq
  18. - sudo apt-get install -qq $SUPPORT
  19. - sudo apt-get install -qq $PACKAGE
  20. - sudo apt-get install -qq cmake libboost1.55-all-dev zlib1g-dev
  21. - sudo apt-get install -qq libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
  22. - sudo apt-get install -qq libavformat-dev libswscale-dev
  23. - sudo apt-get install -qq qt53declarative
  24. #setup compiler
  25. - source /opt/qt53/bin/qt53-env.sh
  26. - export CC=${REAL_CC} CXX=${REAL_CXX}
  27. before_script:
  28. - mkdir build
  29. - cd build
  30. - cmake ..
  31. script:
  32. - make
  33. env:
  34. - ignore=this
  35. matrix:
  36. exclude:
  37. - env: ignore=this
  38. include:
  39. - compiler: clang # fails all the time - missing packages?
  40. env: REAL_CC=clang-3.2 REAL_CXX=clang++-3.2 PACKAGE=clang-3.2 SUPPORT=g++-4.8
  41. - compiler: clang
  42. env: REAL_CC=clang-3.3 REAL_CXX=clang++-3.3 PACKAGE=clang-3.3 SUPPORT=g++-4.8
  43. - compiler: clang
  44. env: REAL_CC=clang-3.4 REAL_CXX=clang++-3.4 PACKAGE=clang-3.4 SUPPORT=g++-4.8
  45. #- compiler: gcc # fails due to running out of memory - vcmi need too much of it for successfull compilation
  46. # env: REAL_CC=gcc-4.7 REAL_CXX=g++-4.7 PACKAGE=g++-4.7 SUPPORT=
  47. #- compiler: gcc # same as 4.7
  48. # env: REAL_CC=gcc-4.8 REAL_CXX=g++-4.8 PACKAGE=g++-4.8 SUPPORT=
  49. notifications:
  50. email:
  51. recipients:
  52. - [email protected]
  53. - [email protected]
  54. on_success: change
  55. on_failure: always