Skip to content

Commit

Permalink
Merge pull request android#234 from jin/buildkite-badge
Browse files Browse the repository at this point in the history
Update README with Bazel CI badge and target labels
  • Loading branch information
jin authored Dec 12, 2018
2 parents 5b82460 + f355d57 commit 05c00ea
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ Many of these samples use the ATSL. Visit the [Android Testing Support Library s
Experimental Bazel Support
--------------------------

[![Build status](https://badge.buildkite.com/18dda320b265e9a8f20cb6141b1e80ca58fb62bdb443e527be.svg)](https://buildkite.com/bazel/android-testing)

Some of these samples can be built with [Bazel](https://bazel.build) on Linux. These samples contain a `BUILD.bazel` file, which is similar to a `build.gradle` file. The external dependencies are defined in the top level `WORKSPACE` file.

This is __experimental__ feature. To run the tests, please install the latest version of Bazel (0.12.0 or later) by following the [instructions on the Bazel website](https://docs.bazel.build/versions/master/install-ubuntu.html).
Expand All @@ -86,19 +88,21 @@ $ $EDITOR WORKSPACE
$ bazel test //... --config=headless
# Test a single test, e.g. ui/espresso/BasicSample/BUILD.bazel
$ bazel test //ui/espresso/BasicSample:BasicSampleInstrumentationTest --config=headless
$ bazel test //ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_21_x86 --config=headless
# Query for all android_instrumentation_test targets
$ bazel query 'kind(android_instrumentation_test, //...)'
//ui/uiautomator/BasicSample:BasicSampleInstrumentationTest
//ui/espresso/RecyclerViewSample:RecyclerViewSampleInstrumentationTest
//ui/espresso/MultiWindowSample:MultiWindowSampleInstrumentationTest
//ui/espresso/IntentsBasicSample:IntentsBasicSampleInstrumentationTest
//ui/espresso/IntentsAdvancedSample:IntentsAdvancedSampleInstrumentationTest
//ui/espresso/IdlingResourceSample:IdlingResourceSampleInstrumentationTest
//ui/espresso/DataAdapterSample:DataAdapterSampleInstrumentationTest
//ui/espresso/CustomMatcherSample:CustomMatcherSampleInstrumentationTest
//ui/espresso/BasicSample:BasicSampleInstrumentationTest
//ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_23_x86
//ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_22_x86
//ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_21_x86
//ui/uiautomator/BasicSample:BasicSampleInstrumentationTest_19_x86
//ui/espresso/RecyclerViewSample:RecyclerViewSampleInstrumentationTest_23_x86
//ui/espresso/RecyclerViewSample:RecyclerViewSampleInstrumentationTest_22_x86
//ui/espresso/RecyclerViewSample:RecyclerViewSampleInstrumentationTest_21_x86
//ui/espresso/RecyclerViewSample:RecyclerViewSampleInstrumentationTest_19_x86
//ui/espresso/MultiWindowSample:MultiWindowSampleInstrumentationTest_23_x86
//ui/espresso/MultiWindowSample:MultiWindowSampleInstrumentationTest_22_x86
...
# Test everything with GUI enabled
$ bazel test //... --config=gui
Expand Down

0 comments on commit 05c00ea

Please sign in to comment.