Alternate solution to cancel travis timeout

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2021-11-04 13:40:51 +01:00
parent dce208e36d
commit d7f1cc47cc
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
2 changed files with 10 additions and 2 deletions

View file

@ -5,7 +5,7 @@ os:
osx_image: xcode11
sudo: required
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_wait package/prepare_osx.sh; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then package/prepare_osx.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then package/prepare_linux.sh; fi
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 -B -m pytest -vs; fi

View file

@ -1,6 +1,14 @@
#!/bin/bash
set -ev # display each line executed along with output
brew update
brew update &
while true; do
ps -p$! 2>& 1>/dev/null
if [ $? = 0 ]; then
echo "still updating..."; sleep 5
else
break
fi
done
# Upgrade to python 3.x
brew upgrade python