Skip to content

acqio/bazel-arcanist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9de762b · Mar 23, 2021

History

17 Commits
Feb 11, 2021
Feb 9, 2021

Repository files navigation

Run you bazel tests using arc unit command (also get your BUILD filers formatted using arc lint). Here is how:

  1. Copy content of this repository into your project:
curl -sSL https://github.com/acqio/bazel-arcanist/archive/0.4.tar.gz | tar zxf - --strip-components=1 --wildcards bazel-arcanist-0.4/tools/*
  1. Modify .arcconfig to make it look like this:
{
  "phabricator.uri": "https://phab.yourserver.com/",
  "load": [
    "tools/arc"
  ],
  "unit.engine": "BazelTestEngine"
}
  1. Modify .arclint to make it look like this:
{
  "linters": {
    "buildifier": {
      "type": "buildifier",
      "include": [
        "(\\.BUILD$)",
        "(\\.bazel$)",
        "(\\.bzl$)",
        "(^BUILD$)",
        "(^WORKSPACE$)"
      ]
    }
  }
}