Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wheels: Travis-CI wait alternative #1524

Open
wants to merge 2 commits into
base: wheels
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Replace travis_wait
Seems to have issues on partner queues (aarch64 & ppc64le).
  • Loading branch information
ax3l committed Aug 23, 2023
commit c22b36b255c88207a785377a76736c35cb73350c
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ install:

script:
- cd src
- travis_wait 45 python -m cibuildwheel --output-dir ../wheelhouse
- ../run_long.sh python -m cibuildwheel --output-dir ../wheelhouse
- cd ..

deploy:
Expand Down
25 changes: 25 additions & 0 deletions run_long.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
#
# Inspired by
# https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-169987525
#

# start command and send to background
"$@" &

minutes=0 # passed [min]
limit=50 # limit [min]

while kill -0 $! >/dev/null 2>&1
do
echo -n -e " \b" # print something and backspace it

if [ $minutes >= $limit ]; then
break;
fi

minutes=$((minutes+1))

# next time in a minute
sleep 60
done