OSDN Git Service

travis-ci: skip a branch build if equal tag is present
authorLars Schneider <larsxschneider@gmail.com>
Sun, 10 Sep 2017 14:44:29 +0000 (16:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Sep 2017 01:17:53 +0000 (10:17 +0900)
commit09f5e9746ce8be640683f9f5f1ffb54a34d4dc90
tree0640ad3957472c8d6800dd653f7c2afe1620b934
parent657343a602ec5eddae6074656bfd0e8a91aaa8e8
travis-ci: skip a branch build if equal tag is present

If we push a branch and a tag pointing to the HEAD of this branch,
then Travis CI would run the build twice. This wastes resources and
slows the testing.

Add a function to detect this situation and skip the build the branch
if appropriate. Invoke this function on every build.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/lib-travisci.sh