diff --git a/.travis.yml b/.travis.yml index 1b45c3d3e..d3eb2e4b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,9 @@ matrix: os: linux - os: osx +before_install: + - git fetch --unshallow + before_cache: - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ @@ -24,6 +27,11 @@ cache: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ +script: + - ./gradlew check + +after_success: + - '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ./gradlew bintrayUpload || :' notifications: slack: @@ -32,9 +40,6 @@ notifications: rooms: secure: "PWEk4+VL986c3gAjWp12nqyifvxCjBqKoESG9d7zWh1uiTLadTHhZJRMdsye36FCpz/c/Jt7zCRO/5y7FaubQptnRrkrRfjp5f99MJRzQVXnUAM+y385qVkXKRKd/PLpM7XPm4AvjvxHCyvzX2wamRvul/TekaXKB9Ti5FCN87s=" -script: - - ./gradlew check - before_deploy: - ./gradlew createZipDistribution - export RELEASE_DIST=$(ls build/distributions/*.zip) @@ -50,8 +55,6 @@ deploy: repo: jMonkeyEngine/jmonkeyengine tags: true -before_install: - - git fetch --unshallow # before_install: # required libs for android build tools @@ -63,5 +66,4 @@ before_install: # 7z x ndk.bin -y > /dev/null # export ANDROID_NDK=`pwd`/android-ndk-r10c -after_success: - - '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ./gradlew bintrayUpload || :' +