A git pre-push hook to run tests on a particular branch when you push

I’ve been working on a project with a couple of others and we needed something to test our build before it was pushed to the main branch. Succinctly, the idea was that when someone pushed to branch X, I wanted a test script to be run. If it passed, it …


This content originally appeared on Ben Frain and was authored by Ben Frain

I’ve been working on a project with a couple of others and we needed something to test our build before it was pushed to the main branch. Succinctly, the idea was that when someone pushed to branch X, I wanted a test script to be run. If it passed, it allowed the push through, otherwise […]


This content originally appeared on Ben Frain and was authored by Ben Frain


Print Share Comment Cite Upload Translate Updates
APA

Ben Frain | Sciencx (2022-09-30T14:06:32+00:00) A git pre-push hook to run tests on a particular branch when you push. Retrieved from https://www.scien.cx/2022/09/30/a-git-pre-push-hook-to-run-tests-on-a-particular-branch-when-you-push/

MLA
" » A git pre-push hook to run tests on a particular branch when you push." Ben Frain | Sciencx - Friday September 30, 2022, https://www.scien.cx/2022/09/30/a-git-pre-push-hook-to-run-tests-on-a-particular-branch-when-you-push/
HARVARD
Ben Frain | Sciencx Friday September 30, 2022 » A git pre-push hook to run tests on a particular branch when you push., viewed ,<https://www.scien.cx/2022/09/30/a-git-pre-push-hook-to-run-tests-on-a-particular-branch-when-you-push/>
VANCOUVER
Ben Frain | Sciencx - » A git pre-push hook to run tests on a particular branch when you push. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/09/30/a-git-pre-push-hook-to-run-tests-on-a-particular-branch-when-you-push/
CHICAGO
" » A git pre-push hook to run tests on a particular branch when you push." Ben Frain | Sciencx - Accessed . https://www.scien.cx/2022/09/30/a-git-pre-push-hook-to-run-tests-on-a-particular-branch-when-you-push/
IEEE
" » A git pre-push hook to run tests on a particular branch when you push." Ben Frain | Sciencx [Online]. Available: https://www.scien.cx/2022/09/30/a-git-pre-push-hook-to-run-tests-on-a-particular-branch-when-you-push/. [Accessed: ]
rf:citation
» A git pre-push hook to run tests on a particular branch when you push | Ben Frain | Sciencx | https://www.scien.cx/2022/09/30/a-git-pre-push-hook-to-run-tests-on-a-particular-branch-when-you-push/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.