mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-06 00:03:36 -04:00
CI: Identify Test Results via directory names
This commit is contained in:
parent
e84d1653b7
commit
780222e1ec
@ -6,7 +6,7 @@ jobs:
|
||||
- image: circleci/ruby:2.6
|
||||
steps:
|
||||
- checkout
|
||||
- run: "mkdir -p ~/test-results"
|
||||
- run: "mkdir -p ~/test-results/rspec && mkdir -p ~/test-results/rubocop"
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
@ -25,7 +25,7 @@ jobs:
|
||||
rubocop --require rubocop/formatter/junit_formatter \
|
||||
--format progress \
|
||||
--format RuboCop::Formatter::JUnitFormatter \
|
||||
--out ~/test-results/rubocop.xml
|
||||
--out ~/test-results/rubocop/results.xml
|
||||
when: always
|
||||
- store_test_results:
|
||||
path: ~/test-results
|
||||
@ -53,6 +53,8 @@ jobs:
|
||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||
paths:
|
||||
- ./vendor/bundle
|
||||
- store_test_results:
|
||||
- path: ~/test-results
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
@ -79,6 +81,8 @@ jobs:
|
||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||
paths:
|
||||
- ./vendor/bundle
|
||||
- store_test_results:
|
||||
- path: ~/test-results
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
@ -105,6 +109,8 @@ jobs:
|
||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||
paths:
|
||||
- ./vendor/bundle
|
||||
- store_test_results:
|
||||
- path: ~/test-results
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
@ -159,6 +165,8 @@ jobs:
|
||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||
paths:
|
||||
- ./vendor/bundle
|
||||
- store_test_results:
|
||||
- path: ~/test-results
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
|
2
Rakefile
2
Rakefile
@ -6,7 +6,7 @@ require 'rspec/core/rake_task'
|
||||
require 'rspec_junit_formatter'
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec) do |config|
|
||||
config.rspec_opts = '--format progress --format RspecJunitFormatter --out ~/test-results/rspec.xml' if ENV['CI']
|
||||
config.rspec_opts = '--format progress --format RspecJunitFormatter --out ~/test-results/rspec/results.xml' if ENV['CI']
|
||||
end
|
||||
|
||||
task default: :test
|
||||
|
Loading…
x
Reference in New Issue
Block a user