diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 00000000000..f8725e6d9df --- /dev/null +++ b/.bazelrc @@ -0,0 +1,2 @@ +test --test_output=errors +test --test_size_filters=-large,-enormous diff --git a/.bazelrc.travis b/.bazelrc.travis new file mode 100644 index 00000000000..c8875e98a98 --- /dev/null +++ b/.bazelrc.travis @@ -0,0 +1,12 @@ +# This is from Bazel's former travis setup, to avoid blowing up the RAM usage. +startup --host_jvm_args=-Xmx2500m +startup --host_jvm_args=-Xms2500m +startup --batch +test --ram_utilization_factor=10 + +# This is so we understand failures better +build --verbose_failures + +# Below this line, .travis.yml will cat the default bazelrc. +# This is needed so Bazel starts with the base workspace in its +# package path. diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000000..a6ef824c1f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bazel-* diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..8471d0d3c61 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,40 @@ +sudo: required +dist: xenial + +lang: go + +go: + - 1.7.x + +jdk: + - oraclejdk8 + +env: + - BAZEL_VERSION=0.4.2 + +addons: + apt: + packages: + - wget + +cache: + directories: + - $HOME/bazel/install + - $HOME/bazel/outbase + +before_install: + - mkdir -p ${HOME}/bazel/install + - cd ${HOME}/bazel/install + - wget --no-clobber "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb" + - chmod +x bazel_${BAZEL_VERSION}-linux-x86_64.deb + - sudo dpkg -i bazel_${BAZEL_VERSION}-linux-x86_64.deb + - sudo apt-get -f install -qqy uuid-dev + - cd ${TRAVIS_BUILD_DIR} + - mv .bazelrc .bazelrc.orig + - cat .bazelrc.travis .bazelrc.orig > .bazelrc + +script: + - bazel --output_base=${HOME}/bazel/outbase test //... + +notifications: + slack: istio-dev:wEEEbaabdP5ieCgDOFetA9nX