sudo: required
dist: trusty
language:
  - java
jdk:
  - oraclejdk8
before_install:
  - echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
  - curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
  - sudo apt-get update
  - sudo apt-get install bazel=0.27.0
  - bazel version
script:
  - bazel test //tests/...
  # waiting for https://github.com/bazelbuild/skydoc/issues/166 before docs will work again...
  #- bazel build //docs/...
  #- cd examples && bazel build //nodejs && bazel test //test/...
  - cd examples && bazel build //nodejs

sudo: required
dist: xenial
before_install:
  - echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
  - curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
  - sudo apt-get update
  - sudo apt-get install bazel=0.27.0
  - bazel version
script:
  - bazel test //tests/...
  # waiting for https://github.com/bazelbuild/skydoc/issues/166 before docs will work again...
  #- bazel build //docs/...
  #- cd examples && bazel build //nodejs && bazel test //test/...
  - cd examples && bazel build //nodejs

Update to Ubuntu 16.04 on CI
Update to Ubuntu 16.04 on CI
