hmmm… I think I may have painted myself into a corner a bit. My students run a set of unit tests on their repos before handing them in. I then run the same unit tests in travis-ci, and if they don’t pass, I send them a note saying that they need to resubmit.
One set of tests is related to their git config info and git commit history. I check that they have a minimum number of commits, and sometimes the files they hand in need to be named according to their github ID’s, which they are required to configure with
git config --set github.user.
So, in these cases the tests read from local git config file. Unfortunately, that config of course doesn’t exist on travis (nor on my local computer, of course). Those tests therefore fail in those environments.
Is there any way for travis, at least, to extract the github id from git commit history? or for me to get it from the GH repo over the github API? Also has anyone else run into this issue, and what did you come up with?