Support travis ci

Support build check per commit or pull-request.