Add travis testing.
Merge pull request #4 from nanliu/travis

Add travis testing.