Skip to content

Instantly share code, notes, and snippets.

@priyankamk
Last active April 22, 2019 01:59
Show Gist options
  • Save priyankamk/0ead258d86e6faac4b057defd189ddf3 to your computer and use it in GitHub Desktop.
Save priyankamk/0ead258d86e6faac4b057defd189ddf3 to your computer and use it in GitHub Desktop.
.circle/config.yml
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/ruby:2.5.0-node-browsers
environment:
RAILS_ENV: test
PGHOST: 127.0.0.1
PGUSER: app-user
- image: circleci/postgres:9.4
environment:
POSTGRES_USER: app-user
POSTGRES_DB: grety_test
working_directory: ~/repo
steps:
- checkout
- run: bundle install --jobs=4 --retry=3 --path vendor/bundle
- run: bundle exec rake db:create
- run: bundle exec rake db:schema:load
- run: bundle exec rake spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment