Move the travis script into Haskell