Change from before_install to install stage for CI