Skip to content

Commit 7793dec

Browse files
committed
Replace travis_wait
Seems to have issues on partner queues (aarch64 & ppc64le).
1 parent 1737205 commit 7793dec

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ install:
136136

137137
script:
138138
- cd src
139-
- travis_wait 45 python -m cibuildwheel --output-dir ../wheelhouse
139+
- ../run_long.sh python -m cibuildwheel --output-dir ../wheelhouse
140140
- cd ..
141141

142142
deploy:

run_long.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)