Skip to content
Snippets Groups Projects
Commit da209707 authored by Jeff Sturek's avatar Jeff Sturek
Browse files

Update .gitlab-ci.yml file

parent 760baec3
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,6 @@ image: ruby:latest
services:
- mysql:latest
- redis:latest
- postgres:latest
variables:
POSTGRES_DB: database_name
# Cache gems in between builds
cache:
......@@ -41,20 +37,4 @@ rubocop:
rspec:
script:
- rspec spec
rails:
variables:
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
script:
- rails db:migrate
- rails db:seed
- rails test
# This deploy job uses a simple deploy flow to Heroku, other providers, e.g. AWS Elastic Beanstalk
# are supported too: https://github.com/travis-ci/dpl
deploy:
type: deploy
environment: production
script:
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_PRODUCTION_KEY
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment