build,travis: build only last commit in a branch build
authorAlexandru Ardelean <redacted>
Sat, 2 Dec 2017 10:03:48 +0000 (12:03 +0200)
committerAlexandru Ardelean <redacted>
Sat, 2 Dec 2017 10:42:52 +0000 (12:42 +0200)
commita52aecd8da942e9b63b702100b41e9516a6abadf
tree12147957088b231a5a77e6d3d9b60b17531156e1
parenta841e344574d57f3097592838f427dffe8dfa262
build,travis: build only last commit in a branch build

This started out as me trying to fix my Python build
in a local Travis CI env.
After 40+ minutes, the build still did not stop:
https://travis-ci.org/commodo/packages/builds/310413628

There is a bug, where the `.travis_do.sh` script does exit early,
and enters an endless loop, when doing a branch build.
It tries to continuously fetch 50 more revisions.
So, I decided to add some limited support for branch builds.

This also allows a simpler testing with Travis before
opening a PR.

This scope of testing is limited to whatever the last
commit touches, but it's still better than nothing.

Signed-off-by: Alexandru Ardelean <redacted>
.travis_do.sh
git clone https://git.99rst.org/PROJECT