Skip to content

Commit 7bd9792

Browse files
committed
ci: Add script to perform Bintray upload while avoiding timeout
1 parent a189252 commit 7bd9792

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ after_success:
5252
deploy:
5353
- provider: script
5454
skip_cleanup: true
55-
script: travis_wait 30 ./gradlew bintrayUpload
55+
script: ".utility/deploy-travis-wrapper.sh"
5656
on:
5757
tags: true
5858
jdk: openjdk7

.utility/deploy-travis-wrapper.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
./gradlew bintrayUpload &
4+
5+
# output every 9 min to prevent a Travis timeout
6+
PID=$!
7+
while [[ `ps -p $PID | tail -n +2` ]]; do
8+
echo 'Deploying...'
9+
sleep 540
10+
done

0 commit comments

Comments
 (0)