Skip to content
This repository was archived by the owner on Apr 6, 2024. It is now read-only.

Commit acda135

Browse files
authored
Add makefile (#20)
* Abort travis pipeline if the first task fails Signed-off-by: Iosmanthus Teng <[email protected]> * Add buildifier to check bzl files Signed-off-by: Iosmanthus Teng <[email protected]> * formated by buildifier Signed-off-by: Iosmanthus Teng <[email protected]> * add jobs: checks and tests Signed-off-by: Iosmanthus Teng <[email protected]> * Add a makefile * make format to format the code including: BUILDs/WORKSPACE and srcs/hdrs * make test/simple-test to run test suite * make clean to clean up the binaries Signed-off-by: Iosmanthus Teng <[email protected]>
1 parent b4cf7b1 commit acda135

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
all: format test
2+
3+
format:
4+
@buildifier -r .
5+
@find . -iname "*.cc" -or -iname "*.h" | xargs clang-format -i
6+
7+
simple-test:
8+
@bazel test tests
9+
10+
test:
11+
@bazel test tests --keep_going --test_output=all
12+
13+
clean:
14+
@bazel clean

0 commit comments

Comments
 (0)