Permalink
Browse files

Travis stuff

  • Loading branch information...
1 parent 85e2960 commit 0bd3c91d9d9cb63281f360f3eb20ef3306b6e3d3 Rob Spieldenner committed Dec 2, 2016
Showing with 38 additions and 0 deletions.
  1. +15 −0 .travis.yml
  2. +23 −0 buildViaTravis.sh
View
@@ -0,0 +1,15 @@
+language: java
+jdk:
+- oraclejdk7
+sudo: false
+install: true
+script: "./buildViaTravis.sh"
+env:
+ global:
+ - secure: BUPwUtVJny/mt3AN5cLqeYQzrc3bdtZNDOKLRHKZxXK6uRk8EnKkdVVvyYqVcc5Xk3bC59A0XyUuNo83yGSjTx9jwlLopSNGZfBDwd7+foM75UCEb2eOkBAYrcsZKaM5Of4wtY5OzPldbMJgq8YBdny0epInhg9/yFoWubt3V7tTzERomaokFDDVqyxuOhzcSrh3kVQ3teuiTl1bMMA3Fl42EOvnJOLjupJFgJKiMLzfFs+Uv36pR+PHhIpNpoDJ6auhfN8eNdCj0GijY8EueQeBaIHH7rtD9q7C5iIHMStp0/kpd/tZuGzg6FzyGo70pKvc4+mxgZQIpHYsXpxW2oo4WvSuQ4jYjfnYpPSbLo74Kj2l4iVFyA5/yAlCmiO9Igy/JnwsmMfj8N7byo20guHKIxNeF4Hl89coaxSGHIh7lWlg8E8yP2QPmM3CHF7piuHeyHriejzU8OWUBdlvo48YaoANxGFYJFRNGEUE9EHPxNzYyhcq1A85JQ+wWdF1ernA0O7bZMXRxuVkZ5k3nL4mVl6muCDb731Nf48VkYPDvkgfmZGkXHrfJzhxFu9iUal5ML3QCfbGDueKvBLO/rF+DK5vZzY3e4zww+tNv1CJCKHMHH5lVSW8Vf7Yj3aT0RkMp5k8fAjqqECXe+hOhEeJH6kEvsL+PKE4P8ueEv0=
+ - secure: dJ5ssWqW4XzcT955k7QFTpQmdO4p1zjDVRwuA6lUkzK8VT+tGGR11RzPQGLctJ9RSVRqFOr/QZoLzLXl59INvJIBrULkLnbLJ8JwVgbcZCzEgVAeradLiR8MeNj+iKhQa2EcMCFgz5z7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sNifvcfp+BVUEnMHKEc6LbzRr88FJUSjAnJX31t/gldGHssdUl9xcNfDEtLXy5mkkUlXVs97djDB0wHbnIh9joa1piSkvZgnejYt9fcXPR67VqgmCOv+hZqLsJl5I/samyLh6Z68TdINEAmtqUwHeL3Kg=
+ - secure: zLVSzs4BMwYEmC9Xgkfi6gLcZIN2Yux6mhEU3HP9RavKKUIzGaCxG1GNaFURj7yGX7CstSmDWKqWOkpAF3AkKhfr1LPE5UJlRb4+rWaLUjo9sJmU4NpJwzsdObsr8X3cq3HhW03lLqwNNCe+kihwNCpP6K5W3L7qyRQFG+HdedEfshtnzITG9GxsSkvGyjUZ8UiHe7d9R0QdU425IkHam8YLKtCq1P7sUZzbCiqFKqXF6+OdaSeY3eKQuGKGoVLh/UYj/oA6igewVAFhm8GmJ6dM8S8xOPCj3Jrflxk6GBITrJiBi92CRcCpbnHcB2LL1if+tY89t/YxMkwgwwWK77OBKls7aaKtv4fHMh1nc//iTEALIdzVkmkmepPmShNi4gi3UsWsABgRga0g8vlkiYeOu3vq0MLA3VpJMow0+oUx71b920xIG7EqVhLUfvPbg/gc3uy4FQMEHsnozNhubfiGsTqOvDRh/vId+cSlh8sKCwRBzpEjouWyEpYQY2/S5ItwaMSikBb8SjfegsZ7sSuuC9bUH7BN2ziG7NbruCCXVvbqiXASEiw69b2jq47bfs35230xI/YvrhdaqiuTkyOlidcHPBC+LxLRTZ3Sej/qShQ3oaGSIpPl701lI4qRe8Wspv/+Sl1Mw9UtLegjvpwi9c8bsRURs/2RGzFoL3s=
+cache:
+ directories:
+ - "$HOME/.gradle/caches"
View
@@ -0,0 +1,23 @@
+#!/bin/bash
+# This script will build the project.
+
+if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
+ echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
+ ./gradlew build
+elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
+ echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
+ ./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build snapshot
+elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
+ echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
+ case "$TRAVIS_TAG" in
+ *-rc\.*)
+ ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" candidate
+ ;;
+ *)
+ ./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" final
+ ;;
+ esac
+else
+ echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
+ ./gradlew build
+fi

0 comments on commit 0bd3c91

Please sign in to comment.