This might have worked in the past[1], but need to be resurrected. Not sure what kind of automation accounts are available for Sonatype...
[1]
|
- "set -x; [[ $DEPLOY == 1 && $TRAVIS_BRANCH == \"master\" ]] && { mvn deploy --settings distribution/settings.xml -DskipTests=true -B; };" |