You are here

bitbucket-pipelines.yml in Scheduled Publish 8.2

Same filename and directory in other branches
  1. 8.3 bitbucket-pipelines.yml

File

bitbucket-pipelines.yml
View source
  1. # This is a sample build configuration for PHP.
  2. # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
  3. # Only use spaces to indent your .yml configuration.
  4. # -----
  5. # You can specify a custom docker image from Docker Hub as your build environment.
  6. image: derh4nnes/pipeline-behat
  7. clone:
  8. depth: full
  9. pipelines:
  10. default:
  11. - step:
  12. name: Build and test
  13. caches:
  14. - composer
  15. script:
  16. - (cd .. && cp -r build scheduled_publish)
  17. - composer create-project drupal-composer/drupal-project:8.x-dev -s dev drupal
  18. - mkdir drupal/web/modules/contrib
  19. - mv ../scheduled_publish drupal/web/modules/contrib
  20. - export PATH="$HOME/.composer/vendor/bin:$PATH"
  21. - (cd drupal/web/modules/contrib/scheduled_publish && ../../../../vendor/bin/phpunit)
  22. branches:
  23. '8.x-*':
  24. - step:
  25. name: Build and test
  26. caches:
  27. - composer
  28. script:
  29. - (cd .. && cp -r build scheduled_publish)
  30. - composer create-project drupal-composer/drupal-project:8.x-dev -s dev drupal
  31. - mkdir drupal/web/modules/contrib
  32. - mv ../scheduled_publish drupal/web/modules/contrib
  33. - export PATH="$HOME/.composer/vendor/bin:$PATH"
  34. - (cd drupal/web/modules/contrib/scheduled_publish && ../../../../vendor/bin/phpunit)
  35. - step:
  36. name: Push dev to drupal.org
  37. script:
  38. - git remote add drupal git@git.drupal.org:project/scheduled_publish.git
  39. - git config --global push.default matching
  40. - git config --global user.name "SaschaHannes"
  41. - git push drupal $BITBUCKET_BRANCH
  42. tags:
  43. '*':
  44. - step:
  45. name: Pushing tags to drupal.org
  46. script:
  47. - git remote add drupal git@git.drupal.org:project/scheduled_publish.git
  48. - git config --global push.default matching
  49. - git config --global user.name "SaschaHannes"
  50. - git push drupal $BITBUCKET_BRANCH --tags