1

I'm just wondering if there is a way (Linux / Unix) to update a Github repository when a particular file has compiled successfully?

So for example, I have a repository called 'Work' and if I compiled the file main.cpp and if it compiles successfully it automatically synchronises the file / repository on Github.

I hope this makes sense and someone can help me :)!

Thankss :)

4

2 に答える 2

2

You can do the other way. If you write proper hook commit will success only if main.cpp will compile.

于 2012-10-09T19:47:13.410 に答える
1

I'm just wondering if there is a way (Linux / Unix) to update a Github repository when a particular file has compiled successfully?

If you can get and analyze results of running gcc (exit-code or grepping output), you can do what you want in rather easy and small (2-3-liner) shell script, can't see any troubles here.

From my side I see your workflow as not bullet-proof (if you push sporadically, you have good chances to lost a lot of local work in case of disaster), just for sake I'll prefer "push all, tag compilable changeset"

于 2012-10-10T11:55:26.007 に答える