add makefile tests and travis config

This commit is contained in:
Robin Appelman 2018-04-17 12:36:16 +02:00
commit c0337e55d9
6 changed files with 90 additions and 1 deletions

9
Makefile Normal file
View file

@ -0,0 +1,9 @@
all: target/x86_64-unknown-linux-musl/release/notify-redis
target/x86_64-unknown-linux-musl/release/notify-redis: Cargo.toml src/main.rs
docker run --rm -it -v "$(CURDIR):/home/rust/src" ekidd/rust-musl-builder cargo build --release
.PHONY: test
test: target/x86_64-unknown-linux-musl/release/notify-redis
./test.sh