0

My build script creates a new release, adds a tag, commits, and pushes to GitHub with --follow-tags option.
This typically results in two build requests with identical hash but different results:

travis build list

The travis skript trigger some sauce-labs test suite, but 443 failed, probably because build 444 was started at nearly the same time:

enter image description here

As you can see, The badge on the travis site considers this 'build passing', but on the GitHub page this is not always the case:

enter image description here

So my questions are:

  • This problem occurs sporadically with git push --follow-tags as well as with
    git push && git push --tags.
    Is there another way?
  • Couldn't build 443 be silently skipped, if a second trigger with the same hash appears within some short time range?
    Or could travis simply acept the test result from the previous run: if the hash is the same, the code is identical, so the test results should be as well(?)
  • I often can resolve this by restarting build 443 on the travis site.
    But this seems like a waste of travis and sauce-lab ressources.
    Is there a better way?

1 Answer 1

1

I'm not sure if it is acceptable for you but you can simply skip build with tag set:

script:
    - if [ -n "$TRAVIS_TAG" ]; then exit 0; fi
    - standard build command
1
  • thanks, I could try that. But this still feels like a workaround for a problem that has its root cause on the travis side (or a misunderstanding on my side)
    – mar10
    Mar 1, 2015 at 7:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.