travis: minor script clean
travis macos: fix exceed log length

Put dependencies installation log into a file