Skip to content

Commit

Permalink
Travis tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfjlaros committed Feb 23, 2019
1 parent 8460441 commit 4478fde
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: python
python:
- 3.4
- 3.5
- 3.6
install:
- sudo apt update
- sudo apt install catch
script:
- cd tests
- make check
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Simple RPC implementation for Arduino.

.. image:: https://img.shields.io/github/last-commit/jfjlaros/simpleRPC.svg
:target: https://github.com/jfjlaros/simpleRPC/graphs/commit-activity
.. image:: https://travis-ci.org/jfjlaros/simpleRPC.svg?branch=master
:target: https://travis-ci.org/jfjlaros/simpleRPC
.. image:: https://readthedocs.org/projects/simplerpc/badge/?version=latest
:target: https://simpleRPC.readthedocs.io/en/latest
.. image:: https://img.shields.io/github/release-date/jfjlaros/simpleRPC.svg
Expand Down
9 changes: 6 additions & 3 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ CC_ARGS := -Wno-pmf-conversions

OBJS := $(addsuffix .o, $(TESTS) $(FIXTURES))

.PHONY: clean distclean
.PHONY: check clean distclean


all: $(EXEC)

$(EXEC): $(OBJS)
$(CC) -o $@ $(MAIN).cc $^
$(EXEC): $(MAIN).cc $(OBJS)
$(CC) -o $@ $^

%.o: %.cc
$(CC) $(CC_ARGS) -I $(INCLUDE_PATH) -o $@ -c $<

check: all
./$(EXEC)

clean:
rm -f $(OBJS)

Expand Down

0 comments on commit 4478fde

Please sign in to comment.