Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. image: edbizarro/bitbucket-pipelines-php7
  2. pipelines:
  3. default:
  4. - step:
  5. script:
  6. - composer require "squizlabs/php_codesniffer=*"
  7. - vendor/bin/phpcs -p -w -s --standard=PSR2 app/ config/ routes/
  8. branches:
  9. staging:
  10. - step:
  11. script:
  12. - composer install --prefer-source --no-interaction --dev
  13. - rsync -avvzc --omit-dir-times --no-perms --exclude-from="dont-deploy" --include=".env.example" --del . $CI_USER@$CI_HOST:$CI_PATH
  14. - export DB_CONNECTION=$CI_DB_CONNECTION
  15. - export DB_HOST=$CI_DB_HOST
  16. - export DB_PORT=$CI_DB_PORT
  17. - export DB_DATABASE=$CI_DB_DATABASE
  18. - export DB_USERNAME=$CI_DB_USERNAME
  19. - export DB_PASSWORD=$CI_DB_PASSWORD
  20. - php artisan migrate --force
  21. - php artisan storage:link
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement