Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(build) Added set -eux to all steps of the CI pipeline #4589

Merged
merged 2 commits into from
Jul 28, 2021
Merged

Conversation

chefsale
Copy link
Contributor

@chefsale chefsale commented Jul 28, 2021

The approach of the pre-command hook doesn't work: #4589 (comment)

@matklad
Copy link
Contributor

matklad commented Jul 28, 2021

that's not pre-commit hook, right? That is ,there's typo in the title?

@chefsale
Copy link
Contributor Author

chefsale commented Jul 28, 2021

Wow, good catch. I don't know how did I came up with the precommand name (wuuuut)😄 Changed.

@chefsale
Copy link
Contributor Author

Oh, no it is actually precommandbased on the docs: https://buildkite.com/docs/agent/v3/hooks. That's why I forgot in the meantime @matklad

@chefsale chefsale force-pushed the precommit branch 2 times, most recently from 5a2e986 to ee1072d Compare July 28, 2021 17:12
@chefsale chefsale changed the title feat(build) Added a pre-commit hook for commom source ~/.cargo/env an… feat(build) Added a pre-command hook for commom source ~/.cargo/env an… Jul 28, 2021
@chefsale
Copy link
Contributor Author

It doesn't seem to work, as it runs in a seperate shell and has no affect on other steps. It seems like we will need to run this in every step. I will update the PR.

@chefsale chefsale changed the title feat(build) Added a pre-command hook for commom source ~/.cargo/env an… feat(build) Added set -eux to all steps of the CI pipeline Jul 28, 2021
@chefsale chefsale merged commit ebbeaf6 into master Jul 28, 2021
@chefsale chefsale deleted the precommit branch July 28, 2021 21:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants