[testng] 92/160: Uploading snapshot.

Eugene Zhukov eugene-guest at moszumanska.debian.org
Tue Aug 18 10:22:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

eugene-guest pushed a commit to annotated tag testng-6.9.5
in repository testng.

commit 9dc4187935f810c14ef2c6d16e2d51ef18b8f270
Author: Cedric Beust <cedric at beust.com>
Date:   Mon Jun 8 18:43:57 2015 -0700

    Uploading snapshot.
---
 .travis.yml              | 5 +++--
 gradle/uploadSnapshot.sh | 7 +++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 73e4401..3760508 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,7 @@ jdk:
   - openjdk7
 
 before_install:
-  - echo "Java home:" $TRAVIS_JDK_VERSION
+  - echo "Java home: $TRAVIS_JDK_VERSION"
 script: ./gradlew clean test
-after_success: ./gradlew uploadArchives
+after_success: "script/uploadSnapshot.sh"
+
diff --git a/gradle/uploadSnapshot.sh b/gradle/uploadSnapshot.sh
index 15aeecd..bde23b2 100644
--- a/gradle/uploadSnapshot.sh
+++ b/gradle/uploadSnapshot.sh
@@ -1,5 +1,8 @@
-if [ $TRAVIS_JDK_HOME == 'jdk7 ]
+if [ $TRAVIS_JDK_HOME == 'oraclejdk7' ]
 then
-   ./gradlew uploadArchives
+  echo "Uploading snapshot"
+  ./gradlew uploadArchives
+else
+  echo "Current JDK is ${TRAVIS_JDK_HOME}, not uploading snapshot"
 fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git



More information about the pkg-java-commits mailing list