Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: edbizarro/bitbucket-pipelines-php7
- pipelines:
- default:
- - step:
- script:
- - composer require "squizlabs/php_codesniffer=*"
- - vendor/bin/phpcs -p -w -s --standard=PSR2 app/ config/ routes/
- branches:
- staging:
- - step:
- script:
- - composer install --prefer-source --no-interaction --dev
- - rsync -avvzc --omit-dir-times --no-perms --exclude-from="dont-deploy" --include=".env.example" --del . $CI_USER@$CI_HOST:$CI_PATH
- - export DB_CONNECTION=$CI_DB_CONNECTION
- - export DB_HOST=$CI_DB_HOST
- - export DB_PORT=$CI_DB_PORT
- - export DB_DATABASE=$CI_DB_DATABASE
- - export DB_USERNAME=$CI_DB_USERNAME
- - export DB_PASSWORD=$CI_DB_PASSWORD
- - php artisan migrate --force
- - php artisan storage:link
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement