diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000000000000000000000000000000000..797c499a8d14f683b5b253abda27df2ec5343fb2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,7 @@
+language: rust
+cache: cargo
+before_script:
+- rustup component add rustfmt-preview
+script:
+- bash ./fmt.sh -- --write-mode=diff
+- bash ./test.sh