From fa586029500e6813d654f1b454cd3345b0a43897 Mon Sep 17 00:00:00 2001 From: Jeff Davidson Date: Mon, 9 Apr 2018 13:49:33 -0700 Subject: [PATCH] Fail Travis builds if snapshot uploading fails. (#163) Per: https://docs.travis-ci.com/user/customizing-the-build/#Breaking-the-Build the exit code of after_success does not affect the build result. So we must instead edit the build script to deploy when needed. Fixes #121 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 81b0544d..cb629abd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,5 +32,5 @@ env: - secure: "Ac95rbJd5dgNdK8ZlaeXpkKYXHGNj8pm4eNv1Oe8YtsByshHtBAK1m55H4Ex55oRXaLXntvQwnnJfqeTDPuqvd7QP1fjvp4Yjdaqa8MkC6qdVtm6LaqsGuE38uSiU6oxJKfnlCywNe2LfFlbzBtPd3ejNI7tfJcO3s1mD2aBT46vmwUy0t5ESxNdP2zUs6DFcbaOUWeJhQn8iNdRm2VbHEMdevzvvXXIUB9YUdBZQIuAZ5E8NRP5/dzPE8P0CY6/yXqQ/6bkXRV3Pf9QsRzJ+oEQVJAIFfC4JAGasgaBIVpaJ2C2At39jrNFpGYUNbHxvkBEal+WiaPk5TfmVbpyWJOTPRaaY3tIRdBbYf6kklnQk2jRJB6GCi4/yvT6oNjTQQEwsuYlaivkibwNehQqtqyjj12CcTI7lwbgNXeLvIWE6LNLIxrY4pnNy3bKjA0oLFoG/FuP3Wi9WldBtVXwvUBVFFXeOgzP6lCDkzGYTwYZi20lRmSgma3Q5e3/BbPtos3BZ9dSY3lUjttGxvHEDCJ48U1aw6usR91ZKD78Thb5OxWLkvs4rjWEDU2I649wiYSyqFldNEnv+2SJSRB+097XEcnCopGXorlMhBMAlhwHyiRY1u0D+9qrpfIl9Z07j0ZiG5uIscDXQZZjMivqe/+u8NJ3kN0zrDO5BQEgNls=" # Publish a SNAPSHOT build for all commits to master. -after_success: - - ./publish-snapshot-on-commit.sh +script: + - ./gradlew build connectedCheck && ./publish-snapshot-on-commit.sh