diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..bfbd025 --- /dev/null +++ b/.circleci/config.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5c0a2e1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: ruby -rvm: - - 2.1.9 - - 2.2.5 - - 2.3.1 -branches: - only: - - master diff --git a/README.md b/README.md index 9365aa1..f08aa55 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ hitch ===== by Rogelio J. Samour (http://blog.therubymug.com) -[![Build Status](https://travis-ci.org/therubymug/hitch.png?branch=master)](https://travis-ci.org/therubymug/hitch) +[![Build Status]()]() Description: -----------