Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Travis config update
Browse files Browse the repository at this point in the history
  • Loading branch information
benorama committed Oct 20, 2016
1 parent 4fd0132 commit cf64030
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
@@ -1,4 +1,14 @@
language: groovy
jdk: oraclejdk8
sudo: false

env:
global:
- secure: IlXiNgn8SAdtJ0meRNNoWyUpuxAmJ8ew9p+zXhvjkc8IgbJiYTUPMYeW9GP4CH6dFdADPPhC8v1c5P41zefBROkp6peLFaeGwt3NLHIXlehTgRUb9jttp+RJ+LbZc6NLO/ACHeurwVSAHbJPI7beAOMlSGj8Sgdln2wTkRRGpI0=
- secure: I8YFAoYIKfu7bg9yQXcQ7Qhd2ywH+C0xYC8Vk+EEsC2ChC2PU1aUPqkxdDofhghEJP0yIfkcevt671oGdYrEsYUA8vFjKXB9UXAdjp5XEbAzB84zxAGTFr3I/BZZ99fHcphY1CJ7I1ux8KRVHfsb7BynlUNvQCzoa/C8jJgKTvU=

script:
- gradle test
- "./gradlew clean assemble --stacktrace"

after_success:
- "./travis-publish.sh"
17 changes: 17 additions & 0 deletions travis-publish.sh
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e

EXIT_STATUS=0
echo "Publishing archives for branch $TRAVIS_BRANCH"
if [[ -n $TRAVIS_TAG ]] || [[ $TRAVIS_BRANCH == 'grails3' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
if [[ -n $TRAVIS_TAG ]]; then
echo "Pushing build to Bintray"
./gradlew bintrayUpload || EXIT_STATUS=$?
else
echo "Ignoring publishing, no tags found"
#echo "Publishing snapshot"
#./gradlew publish || EXIT_STATUS=$?
fi
fi
exit $EXIT_STATUS

0 comments on commit cf64030

Please sign in to comment.