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

Update .travis.yml #412

Merged
merged 7 commits into from Oct 5, 2017

Conversation

Projects
None yet
3 participants
@hmadison
Contributor

hmadison commented Oct 4, 2017

Sets up services needed for test.

@talklittle

This comment has been minimized.

Show comment
Hide comment
@talklittle

talklittle Oct 4, 2017

Contributor

Awesome! Maybe add the badge to the README while you're at it?

[![Build Status](https://travis-ci.org/lobsters/lobsters.svg?branch=master)](https://travis-ci.org/lobsters/lobsters)
Contributor

talklittle commented Oct 4, 2017

Awesome! Maybe add the badge to the README while you're at it?

[![Build Status](https://travis-ci.org/lobsters/lobsters.svg?branch=master)](https://travis-ci.org/lobsters/lobsters)
Show outdated Hide outdated spec/models/user_spec.rb
@@ -6,7 +6,7 @@
expect { User.make!(:username => "") }.to raise_error
expect { User.make!(:username => "*") }.to raise_error
User.make!(:username => "test")
User.make!(:username => "test") unless User.find_by(username: 'test')

This comment has been minimized.

@pushcx

pushcx Oct 5, 2017

Member

Why is this needed? Is this papering over a test failing to clean the database?

@pushcx

pushcx Oct 5, 2017

Member

Why is this needed? Is this papering over a test failing to clean the database?

This comment has been minimized.

@hmadison
@hmadison

This comment has been minimized.

@pushcx

pushcx Oct 5, 2017

Member

Uh... that sure looks like either test data failed to get cleaned or some general pre-test hook is creating duplicate data. There's something wrong here, this unless shouldn't exist. I'm sorry I didn't think of this before hitting merge.

@pushcx

pushcx Oct 5, 2017

Member

Uh... that sure looks like either test data failed to get cleaned or some general pre-test hook is creating duplicate data. There's something wrong here, this unless shouldn't exist. I'm sorry I didn't think of this before hitting merge.

This comment has been minimized.

@hmadison

hmadison Oct 5, 2017

Contributor

Ill dig at this more locally and try to see whats causing the issue.

@hmadison

hmadison Oct 5, 2017

Contributor

Ill dig at this more locally and try to see whats causing the issue.

@pushcx

This comment has been minimized.

Show comment
Hide comment
@pushcx

pushcx Oct 5, 2017

Member

Thanks, this is great to have on PRs.

Member

pushcx commented Oct 5, 2017

Thanks, this is great to have on PRs.

@pushcx pushcx closed this Oct 5, 2017

@pushcx

This comment has been minimized.

Show comment
Hide comment
@pushcx

pushcx Oct 5, 2017

Member

Reopening so I can't forget about the unless again. @hmadison, please reuse this PR if you can land a fix on your travis--conf branch. Hopefully GitHub does the right thing... it looks like reopening deleted the merge commit, which is an OK approach.

Member

pushcx commented Oct 5, 2017

Reopening so I can't forget about the unless again. @hmadison, please reuse this PR if you can land a fix on your travis--conf branch. Hopefully GitHub does the right thing... it looks like reopening deleted the merge commit, which is an OK approach.

@pushcx pushcx reopened this Oct 5, 2017

Show outdated Hide outdated .travis.yml
services:
- mysql
env:
- DATABASE_URL=mysql2://root:@localhost/lobsters_test

This comment has been minimized.

@talklittle

talklittle Oct 5, 2017

Contributor

nitpick: indentation :)

@talklittle

talklittle Oct 5, 2017

Contributor

nitpick: indentation :)

@hmadison

This comment has been minimized.

Show comment
Hide comment
@hmadison

hmadison Oct 5, 2017

Contributor

@pushcx The issue was the seeds.rb file had a definition for the test user which was getting loaded in before the test run.

Contributor

hmadison commented Oct 5, 2017

@pushcx The issue was the seeds.rb file had a definition for the test user which was getting loaded in before the test run.

@pushcx

This comment has been minimized.

Show comment
Hide comment
@pushcx

pushcx Oct 5, 2017

Member

Great, thank you for running that down!

Member

pushcx commented Oct 5, 2017

Great, thank you for running that down!

@pushcx pushcx merged commit a3d3e7a into lobsters:master Oct 5, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment