From eb08649732bd706ddd99a8e9898b1fe7fb1dffcc Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Tue, 24 Mar 2020 23:58:47 +0200 Subject: [PATCH] Fix circle --- .circleci/config.yml | 2 +- .env.test | 1 + Gemfile | 3 +++ Gemfile.lock | 3 +++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d7e1f8..421d28b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -93,7 +93,7 @@ jobs: command: | mkdir /tmp/test-results TESTFILES=$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings) - bundle exec rspec $TESTFILES --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress + bundle exec rspec $TESTFILES --profile 10 -r rspec_junit_formatter --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress - store_test_results: path: /tmp/test-results - store_artifacts: diff --git a/.env.test b/.env.test index cbd10a2..c288f35 100644 --- a/.env.test +++ b/.env.test @@ -19,6 +19,7 @@ TEST_APP_PORT=3005 MYSQL_HOST=localhost MYSQL_DATABASE=ensl_test +MYSQL_USER=ensl MYSQL_USERNAME=ensl MYSQL_PASSWORD=ensl MYSQL_ROOT_PASSWORD=ensl diff --git a/Gemfile b/Gemfile index 935818e..ea6842c 100644 --- a/Gemfile +++ b/Gemfile @@ -117,6 +117,9 @@ group :test do # Database cleaner gem 'database_cleaner-active_record' gem 'database_cleaner-redis' + + # For circle ci + gem 'rspec_junit_formatter' end group :development, :test do diff --git a/Gemfile.lock b/Gemfile.lock index 76b32b0..b49191c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -353,6 +353,8 @@ GEM retriable (3.1.2) rexml (3.2.4) rmagick (4.1.0) + rspec_junit_formatter (0.4.1) + rspec-core (>= 2, < 4, != 2.12.0) rubocop (0.80.1) jaro_winkler (~> 1.5.1) parallel (~> 1.10) @@ -490,6 +492,7 @@ DEPENDENCIES rspec-mocks! rspec-rails! rspec-support! + rspec_junit_formatter rubocop sanitize sass-rails (~> 5.0.3)