Add travis and fixed some bug

Signed-off-by: zdd <zddhub@gmail.com>