Commit ba6c53b9 by Tony Kelman

Implement fail-fast for Travis as well

parent 8008ab6a
#!/bin/sh #!/bin/sh
# Fail fast for superseded builds to PR's
if ! [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
if ! [ \"$TRAVIS_BUILD_NUMBER\" = $(curl -H "Accept: application/vnd.travis-ci.2+json" \
https://api.travis-ci.org/repos/libgit2/libgit2/builds?event_type=pull_request | \
jq ".builds | map(select(.pull_request_number == $TRAVIS_PULL_REQUEST))[0].number") ]; then
echo "There are newer queued builds for this pull request, failing early."
exit 1
fi
fi
if [ -n "$COVERITY" ]; if [ -n "$COVERITY" ];
then then
./script/coverity.sh; ./script/coverity.sh;
......
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
set -x set -x
sudo apt-get -qq update && sudo apt-get -qq update &&
sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server jq
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
set -x set -x
brew install libssh2 cmake brew install libssh2 cmake jq
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment