Add CI capabilities to ri-build.sh