Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This config was automatically generated from your source code
# Stacks detected: deps:ruby:.
version: 2.1
orbs:
ruby: circleci/ruby@2.0.1
jobs:
test-ruby:
# Install gems, run rspec tests
docker:
- image: cimg/ruby:3.2.2-node
- image: circleci/postgres:9.5-alpine
environment:
RAILS_ENV: test
steps:
- checkout
- ruby/install-deps
- run:
name: wait for DB
command: dockerize -wait tcp://localhost:5432 -timeout 1m
- run:
name: Database setup
command: bin/rails db:{create,migrate} --trace
- run:
name: rspec test
command: bundle exec rspec
deploy:
# This is an example deploy job, not actually used by the workflow
docker:
- image: cimg/base:stable
steps:
# Replace this with steps to deploy to users
- run:
name: deploy
command: '#e.g. ./deploy.sh'
workflows:
build-and-test:
jobs:
- test-ruby
# - deploy:
# requires:
# - test-ruby