Created
September 22, 2019 14:39
-
-
Save Nick0603/57a3e9ec962a18ea46af24f6f07ea074 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: lorisleiva/laravel-docker:latest | |
stages: | |
- testing | |
- deployment | |
unit_test: | |
stage: testing | |
script: | |
- composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts | |
- ./vendor/bin/phpunit --testsuit Unit | |
production_deploy: | |
stage: deployment | |
variables: | |
HEROKU_PROJECT_NAME: $HEROKU_PRODUCTION_PROJECT_NAME | |
HEROKU_API_KEY: $HEROKU_PRODUCTION_API_KEY | |
before_script: | |
- apk add ruby ruby-dev ruby-irb ruby-rake ruby-io-console ruby-bigdecimal ruby-json ruby-bundler yarn ruby-rdoc >> /dev/null | |
- apk update | |
- gem install dpl >> /dev/null | |
script: | |
- dpl --provider=heroku --app=$HEROKU_PRODUCTION_PROJECT_NAME --api-key=$HEROKU_API_KEY | |
only: | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment