Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for buildifier integration #2

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
buildifier: true
platforms:
ubuntu1404:
run_targets:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# C++ rules for Bazel
# C++ rules for Bazel....

[![Build status](https://badge.buildkite.com/f03592ae2d7d25a2abc2a2ba776e704823fa17fd3e061f5103.svg)](https://buildkite.com/bazel/rules-cc)

Expand Down
4 changes: 4 additions & 0 deletions cc/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def cc_binary(**attrs):
Args:
**attrs: Rule attributes
"""
d = {} + {}
native.cc_binary(**attrs)

def cc_test(**attrs):
Expand All @@ -32,6 +33,7 @@ def cc_test(**attrs):
Args:
**attrs: Rule attributes
"""
test = PACKAGE_NAME
native.cc_test(**attrs)

def cc_library(**attrs):
Expand All @@ -42,6 +44,8 @@ def cc_library(**attrs):
Args:
**attrs: Rule attributes
"""
for i in "hello world":
i
native.cc_library(**attrs)

def cc_import(**attrs):
Expand Down
2 changes: 1 addition & 1 deletion third_party/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Intentionally empty, only there to make //third_party a package.
# Intentionally empty, only there to make //third_party a package.