mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-09 00:04:39 -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
|
- image: circleci/ruby:2.6
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: "mkdir -p ~/test-results"
|
- run: "mkdir -p ~/test-results/rspec && mkdir -p ~/test-results/rubocop"
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
@ -25,7 +25,7 @@ jobs:
|
|||||||
rubocop --require rubocop/formatter/junit_formatter \
|
rubocop --require rubocop/formatter/junit_formatter \
|
||||||
--format progress \
|
--format progress \
|
||||||
--format RuboCop::Formatter::JUnitFormatter \
|
--format RuboCop::Formatter::JUnitFormatter \
|
||||||
--out ~/test-results/rubocop.xml
|
--out ~/test-results/rubocop/results.xml
|
||||||
when: always
|
when: always
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: ~/test-results
|
path: ~/test-results
|
||||||
@ -53,6 +53,8 @@ jobs:
|
|||||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||||
paths:
|
paths:
|
||||||
- ./vendor/bundle
|
- ./vendor/bundle
|
||||||
|
- store_test_results:
|
||||||
|
- path: ~/test-results
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
@ -79,6 +81,8 @@ jobs:
|
|||||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||||
paths:
|
paths:
|
||||||
- ./vendor/bundle
|
- ./vendor/bundle
|
||||||
|
- store_test_results:
|
||||||
|
- path: ~/test-results
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
@ -105,6 +109,8 @@ jobs:
|
|||||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||||
paths:
|
paths:
|
||||||
- ./vendor/bundle
|
- ./vendor/bundle
|
||||||
|
- store_test_results:
|
||||||
|
- path: ~/test-results
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
@ -159,6 +165,8 @@ jobs:
|
|||||||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}-{{ checksum \"Gemfile.lock\" }}"
|
||||||
paths:
|
paths:
|
||||||
- ./vendor/bundle
|
- ./vendor/bundle
|
||||||
|
- store_test_results:
|
||||||
|
- path: ~/test-results
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
|
2
Rakefile
2
Rakefile
@ -6,7 +6,7 @@ require 'rspec/core/rake_task'
|
|||||||
require 'rspec_junit_formatter'
|
require 'rspec_junit_formatter'
|
||||||
|
|
||||||
RSpec::Core::RakeTask.new(:spec) do |config|
|
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
|
end
|
||||||
|
|
||||||
task default: :test
|
task default: :test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user