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 ...@@ -14,10 +14,6 @@ image: ruby:latest
services: services:
- mysql:latest - mysql:latest
- redis:latest - redis:latest
- postgres:latest
variables:
POSTGRES_DB: database_name
# Cache gems in between builds # Cache gems in between builds
cache: cache:
...@@ -42,19 +38,3 @@ rspec: ...@@ -42,19 +38,3 @@ rspec:
script: script:
- rspec spec - rspec spec
\ No newline at end of file
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment