Adding Travis CI script

because a build test reduce commits with build errors
Making log file and type optional

because that information sometimes not meaningful