Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circleci: merge the linting into the checkout_code job #5350

Merged
merged 5 commits into from Jul 12, 2018

Conversation

coolo
Copy link
Member

@coolo coolo commented Jul 11, 2018

With proper rubocop caching, it only takes a couple of seconds.

So I can run the linting during checkout code without running database.
Brining up the database is easily a minute
2000 seems too little, it's always deleting files after every
run - even though it only has 1023 files to inspect atm
If linting fails, we want to die quick
- src/api/tmp/rubocop_cache
- src/api/tmp/rubocop_cache_root_dir
- src/api/tmp/rubocop_cache_rails_dir
- run: rm -rf src/api/tmp/rubocop*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the removing necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saving space in the repo cache as we already store it in a different cache

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@ChrisBr ChrisBr merged commit 5408592 into openSUSE:master Jul 12, 2018
@coolo coolo deleted the circleci_on_steroids3 branch July 12, 2018 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants