---
platforms:
  ubuntu1404:
    shell_commands:
    # Disable local disk caching on CI.
    - mv tools/bazel.rc.buildkite tools/bazel.rc
    build_targets:
    - "//test/..."
    test_targets:
    - "//test/..."
  ubuntu1604:
    shell_commands:
    # Disable local disk caching on CI.
    - mv tools/bazel.rc.buildkite tools/bazel.rc
    build_targets:
    - "//test/..."
    test_targets:
    - "//test/..."
  macos:
    shell_commands:
    # Disable local disk caching on CI.
    - mv tools/bazel.rc.buildkite tools/bazel.rc
    build_targets:
    - "//test/..."
    test_targets:
    - "//test/..."

---
platforms:
  ubuntu1404:
    shell_commands:
    # Disable local disk caching on CI.
    - mv tools/bazel.rc.buildkite tools/bazel.rc
    - echo "import %workspace%/tools/bazel.rc" > .bazelrc
    build_targets:
    - "//test/..."
    test_targets:
    - "//test/..."
  ubuntu1604:
    shell_commands:
    # Disable local disk caching on CI.
    - mv tools/bazel.rc.buildkite tools/bazel.rc
    - echo "import %workspace%/tools/bazel.rc" > .bazelrc
    build_targets:
    - "//test/..."
    test_targets:
    - "//test/..."
  macos:
    shell_commands:
    # Disable local disk caching on CI.
    - mv tools/bazel.rc.buildkite tools/bazel.rc
    - echo "import %workspace%/tools/bazel.rc" > .bazelrc
    build_targets:
    - "//test/..."
    test_targets:
    - "//test/..."

Add the .bazelrc import for buildkite
Add the .bazelrc import for buildkite

It would be nicer to simply change the "mv" command, but I'm not 100% sure that this would always run with HEAD bazel, so this provides some duality if both formats need to be supported concurrently.