Skip to content

Commit

Permalink
Try Travis publishing take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Mar 9, 2015
1 parent cd2b581 commit 5ea463e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ env:
- secure: VJt5eqKPhQbnjQakNrgC9l5MRmTMN9hccTLD+/ijZEMcb9OTHii+T3jbsHH6cw5JuTH5wabjuWYObtlXLZ+lQknU9hmbhSsm5NlqKHhOno+IxNzfhfRm26oo7wGQneW4cujkmOkzLZrSNN8MU1ISMb0g24x4TgbVzjAUD5jsT/M=
- secure: bm/8EJkrBeO9H+MHwTogPr/0/19vV+K4O+lRAweKOl2w4QxbIog9cCPKr6+b3N+o2N75OImnRwRNXw2x/clV1Vl8TqxdtwNislW+SCei9N7MxrUK27KWCc/k1vad4D2D26DVxx2PquPo24Q8wfc7rXSeoLi4iHlIdpBECIxtA9c=
- secure: X0fScDRO+fo4P4/xUvRmMhpNVqqPrIACIfnywXkUhl4gC/JyxBTfZmw+V6zsnNbyAW8AqJoejB3c709xyqdURXMy89Ect+lY/tei7ah5uZpgv82MhZsGCVaplPJiPDNGPHanqRynIv5brBodZuq0sohKxGRlcoSqChq4ZlY2HII=
before_install:
- openssl aes-256-cbc -pass pass:$SIGNING_PASSPHRASE -in secring.gpg.enc -out local.secring.gpg -d
script: ./travis-build.sh
install: /bin/true
after_failure: ./travis-after-failure.sh
Expand Down
Binary file added secring.gpg.enc
Binary file not shown.
4 changes: 2 additions & 2 deletions travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0 ]]; then
echo "Running Gradle publish for branch $TRAVIS_BRANCH"

if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
./gradlew -Dsigning.key=$SIGNING_KEY -Dsigning.password=$SIGNING_PASSPHRASE -Dsigning.secretKeyRingFile=$USER/.gnupg/secring.gpg uploadArchives publish || EXIT_STATUS=$?
./gradlew -Dsigning.key=$SIGNING_KEY -Dsigning.password=$SIGNING_PASSPHRASE -Dsigning.secretKeyRingFile=local.secring.gpg uploadArchives publish || EXIT_STATUS=$?
./gradlew assemble || EXIT_STATUS=$?
elif [[ $TRAVIS_BRANCH =~ ^(master|2.5.x|2.4.x)$ ]]; then

./gradlew -Dsigning.key=$SIGNING_KEY -Dsigning.password=$SIGNING_PASSPHRASE -Dsigning.secretKeyRingFile=$USER/.gnupg/secring.gpg uploadArchives publish || EXIT_STATUS=$?
./gradlew -Dsigning.key=$SIGNING_KEY -Dsigning.password=$SIGNING_PASSPHRASE -Dsigning.secretKeyRingFile=local.secring.gpg uploadArchives publish || EXIT_STATUS=$?
fi

fi
Expand Down

0 comments on commit 5ea463e

Please sign in to comment.