[travis] move to before_script && script