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 initial .travis.yml #15

Merged
merged 1 commit into from
Aug 8, 2016
Merged

Add initial .travis.yml #15

merged 1 commit into from
Aug 8, 2016

Conversation

david-martin
Copy link
Member

No description provided.

@philbrookes
Copy link
Member

👍 Cool, that build looks good!

@david-martin
Copy link
Member Author

@philbrookes Thanks. We can improve on the build process as needed

@david-martin david-martin merged commit 52c04df into master Aug 8, 2016
@david-martin david-martin deleted the add-travis-ci-build branch August 8, 2016 15:45

script:
- gofmt -d -s $(find . -name '*.go')
- test -z "$(gofmt -d -s $(find . -name '*.go'))"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we run gofmt on the same input twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

The first run is to show the developer what the formatting problem is, if any.
The second run is to allow picking up on if there was any output and fail the build accordlingly, because go fmt always seems to exit with a 0.

@david-martin
Copy link
Member Author

@rhcarvalho For any suggestions you have on improving on this, you can create a jira in issues.jboss.org/browse/FH

@rhcarvalho
Copy link
Contributor

I'm first commenting here to get an understanding closer to the code. Moving this to a different tool just adds friction to the conversation. Once we know if there's anything that needs to change we can create tickets. Sounds good?

@david-martin
Copy link
Member Author

@rhcarvalho Sounds good

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.

4 participants