diff --git a/.travis.yml b/.travis.yml
--- a/.travis.yml
+++ b/.travis.yml
@@ -49,6 +49,9 @@
   - echo $BINPATH
   - mv $BINPATH tomlcheck-$TARGET
   - ls tomlcheck-$TARGET
+  - wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.8/tomlcheck-x86_64-unkown-linux-gnu -O tomlcheck
+  - chmod a+x tomlcheck
+  - ./tomlcheck --file data/sample.toml
 
 deploy:
   api_key:
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -24,3 +24,16 @@
  $ cabal update
  $ cabal install tomlcheck
 ```
+
+## Use
+
+### Travis
+
+A sample script for your `.travis.yml` file:
+
+```yaml
+test:
+  - wget https://github.com/vmchale/tomlcheck/releases/download/0.1.0.8/tomlcheck-x86_64-unkown-linux-gnu -O tomlcheck
+  - chmod a+x tomlcheck
+  - ./tomlcheck --file data/sample.toml
+```
diff --git a/src/Toml/Checker.hs b/src/Toml/Checker.hs
--- a/src/Toml/Checker.hs
+++ b/src/Toml/Checker.hs
@@ -10,6 +10,7 @@
 import qualified Data.Text.IO    as TIO
 import           GHC.Generics    (Generic)
 import           Options.Generic
+import           System.Exit     (ExitCode (..), exitWith)
 import           Text.Megaparsec (parseErrorPretty)
 import           Text.Toml       (parseTomlDoc)
 
@@ -29,4 +30,7 @@
     contents <- TIO.readFile path
     case parseTomlDoc path contents of
         Right _ -> pure ()
-        Left e  -> putStrLn $ parseErrorPretty e
+        Left e  -> do
+            putStrLn $ parseErrorPretty e
+            exitWith (ExitFailure 1)
+
diff --git a/tomlcheck.cabal b/tomlcheck.cabal
--- a/tomlcheck.cabal
+++ b/tomlcheck.cabal
@@ -1,5 +1,5 @@
 name:                tomlcheck
-version:             0.1.0.8
+version:             0.1.0.9
 synopsis:            Command-line tool to check syntax of TOML files
 description:         This is a command-line wrapper around htoml-megaparsec.
                      It is intended to be used as a syntax checker that can be
