Skip to content

Commit 7ea24f3

Browse files
committed
travis: curl in loop for astyle
1 parent 8ec9cbb commit 7ea24f3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,13 @@ matrix:
109109
- env:
110110
- NAME=astyle
111111
install:
112-
- curl -v -LO --retry 20 http://downloads.sourceforge.net/project/astyle/astyle/astyle%203.1/astyle_3.1_linux.tar.gz;
112+
- result=56;
113+
counter=10;
114+
while [[ ($result == 56) && (&counter != 0) ]]; do
115+
curl -v -LO --retry 20 http://downloads.sourceforge.net/project/astyle/astyle/astyle%203.1/astyle_3.1_linux.tar.gz;
116+
result=$?;
117+
counter--;
118+
done;
113119
mkdir -p BUILD && tar xf astyle_3.1_linux.tar.gz -C BUILD;
114120
pushd BUILD/astyle/build/gcc;
115121
make;

0 commit comments

Comments
 (0)