add before_script and add_script hooks in travis config