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

Commit

Permalink
Add makefile (#20)
Browse files Browse the repository at this point in the history
* Abort travis pipeline if the first task fails

Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>

* Add buildifier to check bzl files

Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>

* formated by buildifier

Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>

* add jobs: checks and tests

Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>

* 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 <myosmanthustree@gmail.com>
  • Loading branch information
iosmanthus committed Aug 7, 2019
1 parent b4cf7b1 commit acda135
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
@@ -0,0 +1,14 @@
all: format test

format:
@buildifier -r .
@find . -iname "*.cc" -or -iname "*.h" | xargs clang-format -i

simple-test:
@bazel test tests

test:
@bazel test tests --keep_going --test_output=all

clean:
@bazel clean

0 comments on commit acda135

Please sign in to comment.