commit | 1ee0fda556b252944e7dd140ad0cd7b8949eb496 | [log] [tgz] |
---|---|---|
author | Josh Haberman <[email protected]> | Thu Mar 03 16:02:55 2016 -0800 |
committer | Josh Haberman <[email protected]> | Thu Mar 03 16:27:51 2016 -0800 |
tree | cceb0f1f780a31231dac1c7597ec28c290b6a059 | |
parent | 2f3f1de16debdff284792367245d5ba0e9310b35 [diff] [blame] |
Use a local Maven repository to avoid network fetches during tests.
diff --git a/tools/run_tests/tests.sh b/tools/run_tests/tests.sh index 4b2aef7..c28a5da 100755 --- a/tools/run_tests/tests.sh +++ b/tools/run_tests/tests.sh
@@ -104,6 +104,11 @@ ;; 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 }