add travis testing support

(cherry picked from commit 5dcf69e60bd2d70423a23de2584af8b377d28a79)