travis: split before_install into before_install and install