bitbucket-pipelines.yml 725 B

12345678910111213141516171819202122
  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: dockette/php71
  7. pipelines:
  8. default:
  9. - step:
  10. caches:
  11. - composer
  12. - vendor-directory
  13. script:
  14. - apt-get update && apt-get install -y unzip
  15. - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  16. - composer install
  17. - cp .env.example .env
  18. - vendor/bin/phpunit
  19. definitions:
  20. caches:
  21. vendor-directory: vendor