Add .travis.yml

This commit is contained in:
Alexis Mousset
2014-02-03 21:20:47 +01:00
parent 1469656410
commit 6110986eb7
2 changed files with 8 additions and 1 deletions

7
.travis.yml Normal file
View File

@@ -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

View File

@@ -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