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

Make sure the Travis build fails when website cannot be built #488

Merged
merged 1 commit into from
Aug 31, 2017

Conversation

willdurand
Copy link
Collaborator

@willdurand willdurand commented Aug 31, 2017

Hi,

This PR prevents the website to be broken by ensuring that an error at build time is caught by Travis. I have also added a check to the publish script to avoid publishing an empty website. Both changes should avoid yesterday's situation.

Note: the || return 0 should be removed as soon as all htmlproofer errors are fixed.

@willdurand
Copy link
Collaborator Author

willdurand commented Aug 31, 2017

Please see this diff: https://github.com/galaxyproject/training-material/compare/verify-travis-must-fail.

First commit should have failed (change in a YAML file that makes it invalid) but it does not. That's the current master behaviour.

Second commit is the one proposed here, which now fails the build.

Third commit reverts the first one, should be back to green.

@willdurand willdurand changed the title Make sure the build fails when website cannot be built Make sure the Travis build fails when website cannot be built Aug 31, 2017
Copy link
Member

@bebatut bebatut left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @willdurand

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.

3 participants