.travis.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. language: cpp
  2. compiler: gcc
  3. dist: trusty
  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: TYPE=style
  13. - os: linux
  14. - env: TARGET_OS=debian-sid TARGET_DEPLOY=True
  15. git:
  16. depth: false
  17. - env: TARGET_OS=debian-sid TARGET_ARCH=i386
  18. git:
  19. depth: false
  20. - compiler: clang
  21. env: TARGET_OS=debian-sid
  22. git:
  23. depth: false
  24. - os: osx
  25. osx_image: xcode9.4
  26. before_install:
  27. # appdmg doesn't work with old Node.js
  28. - if [ "$TRAVIS_OS_NAME" = osx ]; then nvm install 10; fi
  29. install: ${TRAVIS_BUILD_DIR}/.travis/install.sh
  30. script: ${TRAVIS_BUILD_DIR}/.travis/script.sh
  31. after_script: ${TRAVIS_BUILD_DIR}/.travis/after_script.sh
  32. before_deploy:
  33. - if [ "$TARGET_OS" != debian-sid ]; then make package; fi
  34. deploy:
  35. provider: releases
  36. api_key:
  37. secure: d4a+x4Gugpss7JK2DcHjyBZDmEFFh4iVfKDfITSD50T6Mc6At4LMgojvEu+6qT6IyOY2vm3UVT6fhyeuWDTRDwW9tfFlaHVA0h8aTRD+eAXOA7pQ8rEMwQO3+WCKuKTfEqUkpL4wxhww8dpkv54tqeIs0S4TBqz9tk8UhzU7XbE=
  38. file_glob: true
  39. file:
  40. - lmms-${TRAVIS_TAG:1}-$TARGET_OS.exe
  41. - /var/cache/pbuilder/result/lmms_*.tar.xz
  42. skip_cleanup: true
  43. on:
  44. tags: true
  45. all_branches: true
  46. condition: '"$TARGET_DEPLOY" = True'
  47. repo: LMMS/lmms