Skip to content

Commit

Permalink
CI: yard junk (#958)
Browse files Browse the repository at this point in the history
* run yard-junk during ci

* better indentation

* create test-results/yard

* wat

* waat

* try this

* or this

* does that dir exist

* combine rubocop and yard-junk into single linting task

* dump to stdout

* create linting dir

* test-results does not exist

* persist test-results too

* cant persist HOME

* create test-results subdirs in the container that uses them

* dont care
  • Loading branch information
technoweenie committed Apr 8, 2019
1 parent c8cf1ac commit 71c7869
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ shared_ruby_steps: &shared_ruby_steps
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- run: mkdir -p ~/test-results/rspec
- run:
name: Run tests
command: bundle exec rspec --require rspec_junit_formatter --format progress --format RspecJunitFormatter --out ~/test-results/rspec/results.xml
Expand All @@ -39,7 +40,7 @@ shared_ruby_steps: &shared_ruby_steps
paths:
- ./vendor/bundle
- store_test_results:
path: ~/test-results
path: ~/test-results/rspec
- persist_to_workspace:
root: .
paths:
Expand All @@ -51,7 +52,6 @@ jobs:
- image: circleci/ruby:2.6
steps:
- checkout
- run: "mkdir -p ~/test-results/rspec && mkdir -p ~/test-results/rubocop"
- persist_to_workspace:
root: .
paths:
Expand All @@ -63,6 +63,7 @@ jobs:
steps:
- attach_workspace:
at: .
- run: mkdir -p ~/test-results/linting
- run:
name: RuboCop
command: |
Expand All @@ -71,12 +72,18 @@ jobs:
--require rubocop-performance \
--format progress \
--format RuboCop::Formatter::JUnitFormatter \
--out ~/test-results/rubocop/results.xml
--out ~/test-results/linting/rubocop.xml
when: always
- run:
name: Yard-Junk
command: |
gem install yard-junk --no-document
yard-junk --path lib
when: always
- store_test_results:
path: ~/test-results
path: ~/test-results/linting
- store_artifacts:
path: ~/test-results
path: ~/test-results/linting

ruby26:
docker:
Expand Down

0 comments on commit 71c7869

Please sign in to comment.