From 7f936fa29b548196d028df4f7ccd59efb54abaef Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Fri, 25 Nov 2016 14:19:45 -0500 Subject: [PATCH] travis: add build/upload task --- .travis.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index d35861a09..454c5dc88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,14 @@ branches: matrix: include: - - jdk: oraclejdk8 - os: linux - # env: UPLOAD_ALL=true + - os: osx + env: BUILD_TASK=":jme3-bullet-native:build" UPLOAD_TASK=":jme3-bullet-native:bintrayUpload" + # - jdk: oraclejdk8 + # os: linux + # env: GRADLE_TASK="check" # - jdk: openjdk7 # os: linux - # - os: osx + # env: GRADLE_TASK="check" addons: apt: @@ -36,11 +38,10 @@ cache: install: script: - - ./gradlew :jme3-bullet-native:build - # - ./gradlew check + - './gradlew "$BUILD_TASK"' after_success: - - '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -n "$UPLOAD_ALL" ] && ./gradlew bintrayUpload || :' + - '[ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && ./gradlew "$UPLOAD_TASK" || :' notifications: slack: