diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..b7553e1 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,43 @@ +jobs: + build: + docker: + - image: 'cimg/base:stable' + steps: + - checkout + - restore_cache: + key: bundle-{{ .Branch }}-{{ checksum "Gemfile.lock" }} + - ruby/install: + version: '2.6' + - run: echo "Ruby 2.6 has been installed" + - run: gem install bundler -v 2.0.1 --force + - run: bundle install + - save_cache: + key: bundle-{{ .Branch }}-{{ checksum "Gemfile.lock" }} + paths: + - "bundle_cache" + + test: + docker: + - image: 'cimg/base:stable' + steps: + - checkout + - restore_cache: + key: bundle-{{ .Branch }}-{{ checksum "Gemfile.lock" }} + - ruby/install: + version: '2.6' + - run: echo "Ruby 2.6 has been installed" + - run: gem install bundler -v 2.0.1 --force + - run: bundle install + - run: bundle exec rake test + +workflows: + build_and_test: + jobs: + - build + - test: + requires: + - build + +orbs: + ruby: circleci/ruby@1.1.1 +version: 2.1 diff --git a/fail_to_ban.gemspec b/fail_to_ban.gemspec index 357bb68..eb93244 100644 --- a/fail_to_ban.gemspec +++ b/fail_to_ban.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.13" + spec.add_development_dependency "bundler", "~> 2.0.1" spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "rspec", "~> 3.0" end