diff options
author | 2017-09-22 12:04:49 -0400 | |
---|---|---|
committer | 2017-09-25 09:37:32 -0400 | |
commit | fe188d630894d67257989f080a615af9f1415416 (patch) | |
tree | ca7a56701d677760576c0f92fdf2c29f64a9c716 /site/docs/skylark/deploying.md | |
parent | 0d00f700c71718043942d211ee73dcefe19d0854 (diff) |
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
Diffstat (limited to 'site/docs/skylark/deploying.md')
-rw-r--r-- | site/docs/skylark/deploying.md | 21 |
1 files changed, 9 insertions, 12 deletions
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 //... |