Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Adds TravisCI and tests current Ruby versions#12

Merged
danielrose7 merged 1 commit into
masterfrom
add-travis-ci
Mar 8, 2018
Merged

Adds TravisCI and tests current Ruby versions#12
danielrose7 merged 1 commit into
masterfrom
add-travis-ci

Conversation

@danielrose7
Copy link
Copy Markdown
Contributor

@danielrose7 danielrose7 commented Feb 20, 2018

Contributor Self-Check:

  • My commits and messages are solid
  • I have included tests that check success and failure
  • I have updated the README as appropriate

Which GitHub Issues does this PR address?

#11

What does this PR do?

The had-been Codeship config had permissions tied to jzornow.

This commit adds Travis. The main benefit here is that we can easily test several versions of ruby with a super simple config.

How do I manually test this?

Check that the Travis build passes and has a decent looking config

GIF for how this PR makes me feel

Comment thread .ruby-version Outdated
@@ -1 +1 @@
2.2.6
2.3.6
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i'd say remove this altogether.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am fine with that. Seems more of a pain than anything.

Comment thread intacct_ruby.gemspec Outdated
spec.authors = ['Jeremy Zornow']
spec.email = ['jeremy@zornow.com']
spec.required_ruby_version = '>= 1.9.3'
spec.required_ruby_version = '>= 2.2.6'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any reason though not to support the whole 2.2.0 line? More generally, what should be our general support policy? I'd say any currently supported Rubies.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think there is a reason to not do the whole 2.2 line.

I picked 2.2.6 as that was the last ruby_version that jz had in here. I bumped from 1.9.3 only so bundle would run in CI (pry-byebug wanted 2+)

I agree with "any currently supported Rubies" which would mean we'd be at 2.2.9 as the lowest current. Right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, for another month and half, or as long as we still have an app using it. 😉

This commit ensures that TravisCI runs in an open manner with
each build that is pushed to privateprep/intacct_ruby

This includes a simple .travis.yml file that runs spec in all
currently maintained versions of ruby. I also added the travis
gem as a dev dependency and made sure these dependencies are
in ABC order.

You may notice that support is removed for Ruby 1.9.3. I chose
to remove support because the specified version of pry-byebug
requires ruby v2+. I think this gem would otherwise work with 1.9.3
but don't think we need to ensure function moving forward.
In this spirit, I also remove the .ruby-version file as testing
across several versions is now done in CI

This commit also restyles and adds a TravisCI badge to the README
@danielrose7 danielrose7 merged commit 8109185 into master Mar 8, 2018
@danielrose7 danielrose7 deleted the add-travis-ci branch March 8, 2018 19:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants