.travis.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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"
  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. deploy:
  49. provider: releases
  50. api_key:
  51. secure: d4a+x4Gugpss7JK2DcHjyBZDmEFFh4iVfKDfITSD50T6Mc6At4LMgojvEu+6qT6IyOY2vm3UVT6fhyeuWDTRDwW9tfFlaHVA0h8aTRD+eAXOA7pQ8rEMwQO3+WCKuKTfEqUkpL4wxhww8dpkv54tqeIs0S4TBqz9tk8UhzU7XbE=
  52. file_glob: true
  53. file:
  54. - lmms-${TRAVIS_TAG:1}-$TARGET_OS.exe
  55. - /var/cache/pbuilder/result/lmms_*.tar.xz
  56. skip_cleanup: true
  57. on:
  58. tags: true
  59. all_branches: true
  60. condition: '"$TARGET_DEPLOY" = True'
  61. repo: LMMS/lmms
  62. notifications:
  63. webhooks:
  64. urls:
  65. - https://webhooks.gitter.im/e/1ac7fc698195981a9227
  66. on_success: change # options: [always|never|change] default: always
  67. on_failure: always # options: [always|never|change] default: always
  68. on_start: never # options: [always|never|change] default: always