core: use before_script instead of before_install (Travis)