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

Add test suite coverage to deployment #175

Merged
merged 596 commits into from
Dec 10, 2018
Merged

Conversation

snuggs
Copy link
Member

@snuggs snuggs commented Jul 11, 2018

Going off the awesome work we did in #164 we now have a fairly stable (and well tested) build pipeline.

🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 #WOOT!!!! 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉

Coverage & Lint are on deck.

Thanks for setting the bin/crank foundation @tmornini @pachonk. NOW is where the rubber meets the road.

@snuggs
Copy link
Member Author

snuggs commented Jul 11, 2018

https://travis-ci.org/devpunks/snuggsi/builds/402507678

HMMMM. Well the great news is tests work (TOO well). @tmornini @pachonk any idea why the suite is running twice? I know the tests had been running before but perhaps shouldn't be in bin/crank? It works great for local because if any of the steps in bin/crank don't pass it disables deployment.

Thoughts... 🤔

@snuggs
Copy link
Member Author

snuggs commented Jul 13, 2018

@brandondees @tmornini @pachonk #PING.

@brandondees
Copy link
Collaborator

brandondees commented Jul 13, 2018

¯\(ツ)

@brandondees
Copy link
Collaborator

$ bin/test && bin/cover does bin/cover run the tests again?

brandondees
brandondees previously approved these changes Jul 13, 2018
@rianby64
Copy link
Collaborator

Looks like it does, @brandondees

@snuggs
Copy link
Member Author

snuggs commented Jul 14, 2018

@brandondees @rianby64 hmmm seems like bin/cover is commented tho. @brandondees where do you see this conjunction? I was gonna address after this gets merged. I have no clue why it's running twice. Perhaps @tmornini made some setting somewhere in Travis.

https://github.com/devpunks/snuggsi/pull/175/files#diff-37f78a78f215090e9287557d4f6271bfR6

@rianby64
Copy link
Collaborator

rianby64 commented Jul 14, 2018

Check this out

- bin/test && bin/cover

Right in the .travis.yml you are calling twice the test process.
Just put - bin/crack and that will be enough, I think.
Or, leave it as - bin/cover, because cover already fires the test process.

@snuggs
Copy link
Member Author

snuggs commented Jul 14, 2018

@rianby64 you nailed it! I would have never thought to look in there as it was @tmornini and @pachonk who worked on the integration. It feels like there should be a bin/integrate to go with our ontology. @brandondees since i've known him has always reminded me developers should have well named "helpers" as well. Not just code.

"integrate" an "integration" sounds like what we are doing here. Implementation details can be tucked in there. Either way feels better than having a conjunction (&&) for a "single" entry point nonetheless.

I'll "WIP" something up (pun intended) 😎

@snuggs
Copy link
Member Author

snuggs commented Jul 14, 2018

@brandondees I guess the first question to ask is are they "bin STUBS" or "SCRIPTS"?

I kinda get stubs...and scripts feels like a little more than what we are doing here (which is just #CATAT "Call A Thing A Thing")

References

Tripped over this while updating https://github.com/devpunks/snuggsi/tree/master/bin#bin-scripts

capture d ecran 2018-07-14 a 10 21 12

@brandondees
Copy link
Collaborator

@snuggs sometimes you can't get away from what people are already calling a thing. sometimes you can (but beware the confusion you'll cause).

binstubs are just scripts that can be executed directly: bin/deploy as opposed to sh bin/deploy

@snuggs snuggs force-pushed the add-test-suite-to-deployment branch 3 times, most recently from d867240 to ffb310f Compare July 18, 2018 04:02
@snuggs snuggs changed the title Add test suite to deployment Add test suite coverage to deployment Dec 10, 2018
@snuggs
Copy link
Member Author

snuggs commented Dec 10, 2018

@tmornini done and done! Bash scripting you'd be proud of. :-)

/cc @rianby64 @brandondees

@snuggs snuggs merged commit fa51f92 into master Dec 10, 2018
@snuggs snuggs deleted the add-test-suite-to-deployment branch December 10, 2018 18:45
@brandondees
Copy link
Collaborator

@snuggs see, that wasn't so hard was it?

@snuggs snuggs mentioned this pull request Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants