aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-x.travis/build.sh11
-rwxr-xr-xcompile.sh1
2 files changed, 10 insertions, 2 deletions
diff --git a/.travis/build.sh b/.travis/build.sh
index 6617e9f3f3..59ca60e536 100755
--- a/.travis/build.sh
+++ b/.travis/build.sh
@@ -22,8 +22,15 @@ if [ -z "${TRAVIS_OS_NAME+x}" ]; then
fi
if [[ $TRAVIS_OS_NAME = 'osx' ]]; then
- # TODO(dmarting) ./compile.sh all
- true
+ export JAVA_VERSION=1.7
+ sed -i.bak 's/_version = "8",/_version = "7",/' tools/jdk/BUILD
+ cat .travis/jdk7.WORKSPACE >WORKSPACE
+ # Ignore zip tests as they requires to much space and jdk8 stuff
+ cat <<'EOF' >.bazelrc
+build --test_tag_filters -zip,-jdk8
+EOF
+ export BAZELRC=$PWD/.bazelrc
+ ./compile.sh all
else
sudo apt-get update -qq
sudo apt-get install -y netcat-traditional
diff --git a/compile.sh b/compile.sh
index 6bffcd231e..aaa4ba6e10 100755
--- a/compile.sh
+++ b/compile.sh
@@ -154,6 +154,7 @@ if [ $DO_TESTS ]; then
new_step "Running tests"
display "."
$BAZEL --blazerc=${BAZELRC} --nomaster_blazerc test \
+ --build_tests_only \
--javacopt="-source ${JAVA_VERSION} -target ${JAVA_VERSION}" \
-k --test_output=errors //src/... //third_party/ijar/... //scripts/... \
|| fail "Tests failed"