diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b26fde7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +before_install: + - yes | sudo add-apt-repository ppa:hansjorg/rust + - sudo apt-get update +install: + - sudo apt-get install rust-nightly +script: + - make check diff --git a/Makefile b/Makefile index e3c7e68..1551474 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ doc/smtp/index.html: $(smtp_files) examples: smtp $(example_files) $(RUSTC) $(RUSTFLAGS) -L build/ src/examples/client.rs -o build/client -tests: $(smtp_files) +build/tests: $(smtp_files) $(RUSTC) --test -o build/tests src/smtp/lib.rs check: all build/tests