Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9d58bc

Browse files
committed
travis: don't download poxyproxy on every run
1 parent 54f6475 commit c9d58bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/citest.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ cd _build
1717
if [ -e $(which java) ]; then
1818
JAVA_FOUND=1
1919
# Should we ask Travis to cache this file?
20-
curl -L https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar >poxyproxy.jar || exit $?
20+
if [ ! -f poxyproxy.jar ]; then
21+
curl -L https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar >poxyproxy.jar || exit $?
22+
fi
2123
# Run this early so we know it's ready by the time we need it
2224
java -jar poxyproxy.jar -d --port 8080 --credentials foo:bar &
2325
fi

0 commit comments

Comments
 (0)