mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-18 20:02:32 +12:00
Alternate solution to cancel travis timeout
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
dce208e36d
commit
d7f1cc47cc
|
@ -5,7 +5,7 @@ os:
|
||||||
osx_image: xcode11
|
osx_image: xcode11
|
||||||
sudo: required
|
sudo: required
|
||||||
install:
|
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
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then package/prepare_linux.sh; fi
|
||||||
script:
|
script:
|
||||||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 -B -m pytest -vs; fi
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 -B -m pytest -vs; fi
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ev # display each line executed along with output
|
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
|
# Upgrade to python 3.x
|
||||||
brew upgrade python
|
brew upgrade python
|
||||||
|
|
Loading…
Reference in a new issue