Skip to content

Commit 062db07

Browse files
Merge pull request #52 from jchw-forks/docker-cache-deps
Ensure deps aren't downloaded on each Docker build
2 parents a00080c + 95206d5 commit 062db07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

travis/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ case "$TRAVIS_OS_NAME" in
33
STATICDEPS_URL="http://sourceforge.net/projects/deadbeef/files/staticdeps/ddb-static-deps-latest.tar.bz2/download"
44
mkdir -p temp
55
if [ ! -d static-deps ]; then
6+
if [ ! -f temp/ddb-static-deps.tar.bz2 ]; then
7+
echo "downloading static deps..."
8+
wget -q $STATICDEPS_URL -O temp/ddb-static-deps.tar.bz2 || exit 1
9+
fi
610
mkdir static-deps
7-
echo "downloading static deps..."
8-
wget -q $STATICDEPS_URL -O temp/ddb-static-deps.tar.bz2 || exit 1
911
echo "unpacking static deps..."
1012
tar jxf temp/ddb-static-deps.tar.bz2 -C static-deps || exit 1
1113
fi

0 commit comments

Comments
 (0)