.travis.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. sudo: required
  2. dist: trusty
  3. language: cpp
  4. cache: ccache
  5. # regex is for release tags
  6. branches:
  7. only:
  8. - master
  9. - /^v(\d+\.){2}\d+$/
  10. matrix:
  11. fast_finish: true
  12. include:
  13. - os: linux
  14. env: JOB=verify-commit-format
  15. - os: linux
  16. env: JOB=build-docs DOXYGEN_CONFIG_FILE=doxygen.conf
  17. - os: linux
  18. env: JOB=build-gitstats GITSTATS_DIR=gitstats
  19. addons:
  20. apt:
  21. packages:
  22. - gitstats
  23. # the actual compilin'
  24. - os: linux
  25. env: JOB=build-ubuntu-14-04
  26. - os: osx
  27. osx_image: xcode7.3
  28. env: JOB=build-osx
  29. script: "./.travis/$JOB.sh"
  30. deploy:
  31. # osx binary
  32. - provider: releases
  33. api_key:
  34. secure: "BRbzTWRvadALRQSTihMKruOj64ydxusMUS9FQR//qFlS345ZYfYta43W//4LcWWDKtj6IvA6DRqNdabgWnpbpxpnm9gVftGUdOKlU3niPZhwsMkB2M12QHUnAP6DVOfGPvdciBV+6mu73SSxniEcrYjZ1CrRX7mknmehPpVKxNk="
  35. file: "./qTox.dmg"
  36. on:
  37. condition: $TRAVIS_OS_NAME == osx
  38. repo: qTox/qTox
  39. tags: true
  40. skip_cleanup: true
  41. # branch for windows jenkins build
  42. - provider: script
  43. script: .travis/deploy-jenkins-branch.sh
  44. on:
  45. tags: true
  46. skip_cleanup: true
  47. after_success:
  48. - >
  49. test $TRAVIS_PULL_REQUEST == "false"
  50. && test $TRAVIS_BRANCH == "master"
  51. && test $JOB == "build-docs"
  52. && bash ./.travis/deploy-docs.sh
  53. - >
  54. test $TRAVIS_PULL_REQUEST == "false"
  55. && test $TRAVIS_BRANCH == "master"
  56. && test $JOB == "build-gitstats"
  57. && bash ./.travis/deploy-gitstats.sh