From fe188d630894d67257989f080a615af9f1415416 Mon Sep 17 00:00:00 2001 From: Siddhartha Bagaria Date: Fri, 22 Sep 2017 12:04:49 -0400 Subject: Update travis setup instructions Travis now (since Aug 2017) has trusty as the default image for both VM and container, on which the bazel apt repo can be used and so compiling from source is not needed. See working example at https://github.com/grailbio/rules_r/blob/master/.travis.yml Closes #3781. PiperOrigin-RevId: 169695984 --- site/docs/skylark/deploying.md | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'site/docs/skylark/deploying.md') diff --git a/site/docs/skylark/deploying.md b/site/docs/skylark/deploying.md index d6b87632db..912e7dd1e0 100644 --- a/site/docs/skylark/deploying.md +++ b/site/docs/skylark/deploying.md @@ -102,18 +102,15 @@ docs](https://docs.travis-ci.com/user/getting-started/). Then add a `.travis.yml` file to your repository with the following content: ``` -language: - - java -jdk: - - oraclejdk8 # Building Bazel requires JDK8. -before_install: - - wget https://github.com/bazelbuild/bazel/archive/0.3.0.zip # Replace with desired version - - unzip 0.3.0.zip - - cd bazel-0.3.0 - - ./compile.sh - - sudo cp output/bazel /usr/bin/bazel - - cd .. - - rm -rf bazel-0.3.0 +# On trusty images, the Bazel apt repository can be used. +addons: + apt: + sources: + - sourceline: 'deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8' + key_url: 'https://bazel.build/bazel-release.pub.gpg' + packages: + - bazel + script: - bazel build //... - bazel test //... -- cgit v1.2.3