From 26e9cabfcb1aca1a798813af311952ec0309387d Mon Sep 17 00:00:00 2001 From: Edgar Suarez Date: Fri, 4 Dec 2020 23:52:08 -0600 Subject: [PATCH] Add CircleCI configuration --- .circleci/config.yml | 22 ++++++++++++++++++++++ Gemfile | 1 - Gemfile.lock | 3 --- test/test_helper.rb | 5 ----- 4 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..612e844 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,22 @@ +version: 2.1 +orbs: + ruby: circleci/ruby@0.1.2 + +jobs: + build: + docker: + - image: circleci/ruby:2.5.0 + environment: + TEST_COVERAGE: true + + executor: ruby/default + steps: + - checkout + - ruby/bundle-install + - run: + name: Run tests + command: bundle exec rake + + - store_artifacts: + path: coverage + destination: coverage diff --git a/Gemfile b/Gemfile index 48a4efc..e20a2ff 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,6 @@ end group :test do gem 'minitest', '~> 5.14', require: 'minitest/autorun' - gem 'minitest-ci', '~> 3.4', require: false gem 'minitest-reporters', '~> 1.4' gem 'mocha', '~> 1.11', require: 'mocha/minitest' gem 'simplecov', '~> 0.19', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 2b1c6cc..b680c57 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,8 +13,6 @@ GEM hashdiff (1.0.1) method_source (1.0.0) minitest (5.14.2) - minitest-ci (3.4.0) - minitest (>= 5.0.6) minitest-reporters (1.4.2) ansi builder @@ -45,7 +43,6 @@ PLATFORMS DEPENDENCIES dotenv (~> 2.7) minitest (~> 5.14) - minitest-ci (~> 3.4) minitest-reporters (~> 1.4) mocha (~> 1.11) pry-byebug diff --git a/test/test_helper.rb b/test/test_helper.rb index a8dfe89..04d330d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -12,9 +12,4 @@ Bundler.require(:test) -if ENV['CI'] - require 'minitest/ci' - Minitest::Ci.report_dir = 'test_results' -end - Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new]