Skip to content

Commit

Permalink
Replace TravisCI with CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
therubymug committed May 6, 2020
1 parent d86ca2f commit ea71a97
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
jobs:
build:
working_directory: ~/hitch
docker:
- image: circleci/ruby:2.6.6-stretch-node
environment:
RAILS_ENV: test
RACK_ENV: test
steps:
- checkout

- restore_cache:
keys:
- gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- gem-cache-v1-{{ arch }}-{{ .Branch }}
- gem-cache-v1

- run:
name: Install Ruby Dependencies
command: bundle install --path vendor/bundle

- save_cache:
key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

- run:
name: Run RSpec
command: bundle exec rspec

0 comments on commit ea71a97

Please sign in to comment.