.travis.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. language: cpp
  2. compiler: gcc
  3. dist: xenial
  4. sudo: required
  5. cache:
  6. directories:
  7. - $HOME/apt_mingw_cache
  8. - $HOME/.ccache
  9. - $HOME/pbuilder-bases
  10. matrix:
  11. include:
  12. - env: TARGET_OS=win32
  13. dist: trusty
  14. - env: TARGET_OS=win64
  15. dist: trusty
  16. - os: osx
  17. osx_image: xcode8.2
  18. - env: QT5=
  19. - env: QT5=True
  20. - env: QT5=True TARGET_OS=win32 TARGET_DEPLOY=True
  21. dist: trusty
  22. - env: QT5=True TARGET_OS=win64 TARGET_DEPLOY=True
  23. dist: trusty
  24. - os: osx
  25. osx_image: xcode8.2
  26. env: QT5=True
  27. - env: TARGET_OS=debian-sid TARGET_DEPLOY=True
  28. git:
  29. depth: false
  30. - env: TARGET_OS=debian-sid TARGET_ARCH=i386
  31. git:
  32. depth: false
  33. - compiler: clang
  34. env: TARGET_OS=debian-sid
  35. git:
  36. depth: false
  37. before_install:
  38. - . ${TRAVIS_BUILD_DIR}/.travis/${TRAVIS_OS_NAME}.${TARGET_OS}.before_install.sh
  39. install:
  40. - . ${TRAVIS_BUILD_DIR}/.travis/${TRAVIS_OS_NAME}.${TARGET_OS}.install.sh
  41. before_script:
  42. - export CMAKE_FLAGS="-DWANT_QT5=$QT5 -DUSE_WERROR=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUNDLE_QT_TRANSLATIONS=ON"
  43. - if [ -z "$TRAVIS_TAG" ]; then export CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_CCACHE=ON"; fi
  44. script:
  45. - . ${TRAVIS_BUILD_DIR}/.travis/${TRAVIS_OS_NAME}.${TARGET_OS}.script.sh
  46. after_script:
  47. - ccache -s
  48. notifications:
  49. webhooks:
  50. urls:
  51. - https://webhooks.gitter.im/e/1ac7fc698195981a9227
  52. on_success: change # options: [always|never|change] default: always
  53. on_failure: always # options: [always|never|change] default: always
  54. on_start: never # options: [always|never|change] default: always