Enabled releasing from Travis
Enabled releasing from Travis

Release process is so hard to work with and test. I'll fix this.

Here's the log from './gradlew release -PdryRun':

Dry-running the release! Although 'bintrayUpload' is executed, it won't upload any binaries ('bintrayUpload.dryRun' property is set).
:release
Dry-running the release
Performing 9 release steps
Step 1: ensure good chunk of recent commits is pulled for release notes automation
--- Executing: git pull --depth 1000 origin issue-681
From github.com:mockito/mockito
 * branch            issue-681  -> FETCH_HEAD
Already up-to-date.
--- Completed!
Step 2: configure generic git user
Step 3: commit updated javadoc into gh-pages branch
--- Executing: git fetch origin +gh-pages:gh-pages
From github.com:mockito/mockito
 + db331f2...99af480 gh-pages   -> gh-pages  (forced update)
--- Completed!
--- Executing: git checkout gh-pages
Checking out files: 100% (126836/126836), done.ing out files:   4% (5074/126836)
Switched to branch 'gh-pages'
--- Completed!
--- Executing: git rm -r docs/current -q
--- Completed!
--- Executing: git add docs
--- Completed!
--- Executing: git commit -m "Refresh javadoc by Travis CI build null" -q
--- Completed!
Step 4: start operating on issue-681
--- Executing: git checkout issue-681
Checking out files: 100% (127210/127210), done.king out files:  12% (15266/127210)
Switched to branch 'issue-681'
--- Completed!
Step 5: update release notes
Building new release notes based on /Users/sfaber/mockito/src/doc/release-notes/official.md
Building notes for revisions: v2.1.0 -> HEAD
Successfully updated release notes!
Step 6: commit release notes
--- Executing: git add /Users/sfaber/mockito/src/doc/release-notes/official.md
--- Completed!
--- Executing: git commit -m "Update release notes by Travis CI build null" /Users/sfaber/mockito/src/doc/release-notes/official.md
[issue-681 3794199] "Update release notes by Travis CI build null"
 1 file changed, 18 insertions(+)
--- Completed!
Step 7: create new version tag
--- Executing: git tag -a v2.2.0 -m Create tag v2.2.0 by Travis CI build null
--- Completed!
Step 8: commit incremented version on issue-681
--- Executing: git commit -m Increment version '2.2.0' -> '2.2.1' by Travis CI build null version.properties
[issue-681 7c82a60] Increment version '2.2.0' -> '2.2.1' by Travis CI build null
 1 file changed, 1 insertion(+), 1 deletion(-)
--- Completed!
Step 9: push changes to all involved branches
--- Executing: git push <masked> issue-681 gh-pages v2.2.0 -q --dry-run
--- Completed!
No cleanup found for step 'push changes to all involved branches'
No cleanup found for step 'commit incremented version on issue-681'
No cleanup found for step 'create new version tag'
No cleanup found for step 'commit release notes'
No cleanup found for step 'update release notes'
No cleanup found for step 'start operating on issue-681'
No cleanup found for step 'commit updated javadoc into gh-pages branch'
Cleaning up after step 'configure generic git user'
No cleanup found for step 'ensure good chunk of recent commits is pulled for release notes automation'
:rollbackRelease
Release failed. Rolling back 9 release steps.
Attempting to roll back step 9 (push changes to all involved branches)
No rollback or cleanup operation found for step 'push changes to all involved branches'
Attempting to roll back step 8 (commit incremented version on issue-681)
--- Executing: git reset --hard HEAD^
HEAD is now at 3794199 "Update release notes by Travis CI build null"
--- Completed!
Attempting to roll back step 7 (create new version tag)
--- Executing: git tag -d v2.2.0
Deleted tag 'v2.2.0' (was 37c7a19)
--- Completed!
Attempting to roll back step 6 (commit release notes)
--- Executing: git reset --hard HEAD^
HEAD is now at ac9cffa Fixed release step
--- Completed!
Attempting to roll back step 5 (update release notes)
No rollback or cleanup operation found for step 'update release notes'
Attempting to roll back step 4 (start operating on issue-681)
No rollback or cleanup operation found for step 'start operating on issue-681'
Attempting to roll back step 3 (commit updated javadoc into gh-pages branch)
No rollback or cleanup operation found for step 'commit updated javadoc into gh-pages branch'
Attempting to roll back step 2 (configure generic git user)
Attempting to roll back step 1 (ensure good chunk of recent commits is pulled for release notes automation)
No rollback or cleanup operation found for step 'ensure good chunk of recent commits is pulled for release notes automation'

BUILD SUCCESSFUL

mockito/mockito,bric3/mockito,ze-pequeno/mockito,bric3/mockito,mockito/mockito,ze-pequeno/mockito,terebesirobert/mockito,bric3/mockito,mockito/mockito