File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ before_install:
12
12
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq build-essential; fi
13
13
14
14
script :
15
- - SKIPINSTALL=yes ./build-ffmpeg --build
15
+ - SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
16
16
17
17
after_script :
18
18
- ./build-ffmpeg --cleanup
Original file line number Diff line number Diff line change @@ -43,6 +43,15 @@ download () {
43
43
44
44
echo " Downloading $1 "
45
45
curl -L --silent -o " $PACKAGES /$2 " " $1 "
46
+
47
+ EXITCODE=$?
48
+ if [ $EXITCODE -ne 0 ]; then
49
+ echo " "
50
+ echo " Failed to download $1 . Exitcode $EXITCODE . Retrying in 10 seconds" ;
51
+ sleep 10
52
+ curl -L --silent -o " $PACKAGES /$2 " " $1 "
53
+ fi
54
+
46
55
EXITCODE=$?
47
56
if [ $EXITCODE -ne 0 ]; then
48
57
echo " "
@@ -62,7 +71,13 @@ download () {
62
71
63
72
execute () {
64
73
echo " $ $* "
65
- OUTPUT=" $( $@ 2>&1 ) "
74
+
75
+ if [[ ! $VERBOSE == " yes" ]]; then
76
+ OUTPUT=" $( $@ 2>&1 ) "
77
+ else
78
+ $@
79
+ fi
80
+
66
81
67
82
if [ $? -ne 0 ]; then
68
83
echo " $OUTPUT "
You can’t perform that action at this time.
0 commit comments