We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
travis_wait
1 parent 1737205 commit 7793decCopy full SHA for 7793dec
2 files changed
.travis.yml
@@ -136,7 +136,7 @@ install:
136
137
script:
138
- cd src
139
- - travis_wait 45 python -m cibuildwheel --output-dir ../wheelhouse
+ - ../run_long.sh python -m cibuildwheel --output-dir ../wheelhouse
140
- cd ..
141
142
deploy:
run_long.sh
@@ -0,0 +1,25 @@
1
+#!/usr/bin/env bash
2
+#
3
+# Inspired by
4
+# https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-169987525
5
6
+
7
+# start command and send to background
8
+"$@" &
9
10
+minutes=0 # passed [min]
11
+limit=50 # limit [min]
12
13
+while kill -0 $! >/dev/null 2>&1
14
+do
15
+ echo -n -e " \b" # print something and backspace it
16
17
+ if [ $minutes >= $limit ]; then
18
+ break;
19
+ fi
20
21
+ minutes=$((minutes+1))
22
23
+ # next time in a minute
24
+ sleep 60
25
+done
0 commit comments