Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Post History
Of course you can. The script should probably be external to the repository (either stored outside it or in the working tree but not committed and not conflicting with anything in history), otherwi...
Answer
#1: Initial revision
Of course you can. The script should probably be external to the repository (either stored outside it or in the working tree but not committed and not conflicting with anything in history), otherwise you'll have problems with different versions of the runner being used to test different versions. The `git bisect run` command is what you are looking for. `man git bisect` and look for the "Bisect run" header for more info. The TL;DR is that you write a script that does any cleanup/setup/configure/build work you need, then runs a test, then exits with 0 for success, 1 for failure, or 125 to skip. To further automate this you'll have to make some assumptions such as the oldest possible version your test can be expected to pass on, or include that logic in your runner to output skips. Heuristics for this part are very hard though and it really makes more sense for you to input a starting point (like the last major release tag).