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

[WIP] General tweaks to configuration and such to bring codebase up to date #391

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

mvastola
Copy link
Member

@mvastola mvastola commented Apr 19, 2021

Work in progress. Expecting many build failures.

@mvastola mvastola self-assigned this Apr 19, 2021
@mvastola mvastola force-pushed the housekeeping branch 3 times, most recently from aea8d7d to d9b0bb8 Compare April 19, 2021 04:58
Mike Vastola added 7 commits April 19, 2021 14:07
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

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

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]

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'

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'

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

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 <mike@vasto.la>
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