.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # PHP project
  2. language: php
  3. # which versions of PHP to build with
  4. php:
  5. - 5.6
  6. # set global environment variables
  7. env:
  8. global:
  9. # make PROJECTNAME from vendor/project
  10. # this strips everything before the last /
  11. - PROJECTNAME=${TRAVIS_REPO_SLUG##*/}
  12. # make sure we have the latest version of composer
  13. before_install:
  14. - composer self-update
  15. # install dependencies
  16. install:
  17. - composer install
  18. # no phpunit tests (yet)
  19. script: true
  20. # no email notifications
  21. notifications:
  22. email: false
  23. # before deployment make the zipfile to upload
  24. before_deploy:
  25. # execute release prepare script
  26. - sh ./vendor/coldtrick/releases/scripts/travis/before_deploy.sh
  27. # deployment settings
  28. deploy:
  29. provider: releases
  30. api_key:
  31. secure: XwcQuXUo6LLbtgLvAL62Od47EArGgZTBSPMWtsA8wGPBVmLtDOgZgWEI4+T6X/Kotdc3yG7nB+kaam3R5nB8rgPPCXUOzA0bYoRFkPnhDXUK7K0e4+ucNda+AjVhSMLJ1dAhLI1amG8xQRWxoz19Yy/8ATl+n0UCtvvl6fyDSJw=
  32. # name of the zip to upload
  33. file: ${PROJECTNAME}_$TRAVIS_TAG.zip
  34. skip_cleanup: true
  35. on:
  36. # only when a tag is created in GitHub
  37. tags: true
  38. all_branches: true
  39. after_deploy:
  40. # execute release after script
  41. - sh ./vendor/coldtrick/releases/scripts/travis/after_deploy.sh