diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-03-03 16:02:55 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-03-03 16:27:51 -0800 |
commit | 1ee0fda556b252944e7dd140ad0cd7b8949eb496 (patch) | |
tree | cceb0f1f780a31231dac1c7597ec28c290b6a059 /tools/run_tests/tests.sh | |
parent | 2f3f1de16debdff284792367245d5ba0e9310b35 (diff) | |
download | protobuf-1ee0fda556b252944e7dd140ad0cd7b8949eb496.tar.gz protobuf-1ee0fda556b252944e7dd140ad0cd7b8949eb496.tar.bz2 protobuf-1ee0fda556b252944e7dd140ad0cd7b8949eb496.zip |
Use a local Maven repository to avoid network fetches during tests.
Diffstat (limited to 'tools/run_tests/tests.sh')
-rwxr-xr-x | tools/run_tests/tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/run_tests/tests.sh b/tools/run_tests/tests.sh index 4b2aef77..c28a5daa 100755 --- a/tools/run_tests/tests.sh +++ b/tools/run_tests/tests.sh @@ -104,6 +104,11 @@ use_java() { ;; esac + if [ "$TRAVIS" != "true" ]; then + MAVEN_LOCAL_REPOSITORY=/var/maven_local_repository + MVN="$MVN -e -X --offline -Dmaven.repo.local=$MAVEN_LOCAL_REPOSITORY" + fi; + which java java -version } |