-
Notifications
You must be signed in to change notification settings - Fork 427
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
[WIP] General tweaks to configuration and such to bring codebase up to date #391
base: master
Are you sure you want to change the base?
Conversation
aea8d7d
to
d9b0bb8
Compare
Remove activerecord, etc from gemspec (seems to not be standard to include supported ORMs, etc there). Disable fast-finish for now to make debugging all the compatibility issues easier. Also added script to generate list of excludes in `.travis.yml`. (Since we're supporting so many versions right now, there are a ton)
@@ -4,3 +4,5 @@ | |||
pkg | |||
Gemfile.lock | |||
coverage | |||
/.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not everybody uses Jetbrains editors.
While this does not hurt. its bad practice to clutter projects with local env settings.
best to put that in the home folder of the dev
$ grep ign ~/.gitconfig
excludesfile = ~/.gitignore_global
my two cents on the topic
@@ -0,0 +1,38 @@ | |||
os: linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
travis no longer offer supports for opensource project.
need to migrate this to Github Actions, or something else...
@@ -0,0 +1,32 @@ | |||
|
|||
SUPPORTED_RAILS_VERSIONS = %w[3.0 3.1 3.2 4.0 4.1 4.2 5.0 5.1 5.2 6.0 6.1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably a good time to trash everything below 5.2
|
||
gem 'sqlite3' | ||
|
||
if RUBY_VERSION < '2.1.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reallly ?
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- test/*`.split("\n") | ||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- test/*`.split("\n") | ||
|
||
s.required_ruby_version = '>= 2.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.6 should be minimum now.
2.5 if you want to push it, but there are no good reason to still support anything below.
YAML.dump(travis_config, f) | ||
end | ||
|
||
printf "Done. (%d excludes and %d allowed failures)\n", excludes.size, failables.size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that must have been fun to write.
I now prefer using includes
instead of excludes
. Travis also supports it.
but here is a Github Actions example
https://github.com/payrollhero/webhook_system/blob/master/.github/workflows/ci.yml
Signed-off-by: Mike Vastola <[email protected]>
Work in progress. Expecting many build failures.