Debian Ruby team maintains a set of scripts that helps testing reverse dependencies of packages when updating an existing package in addition to running clean build with suild and autopkgtest with lxc. It runs autopkgtest for all reverse dependencies and rebuilds all reverse build dependencies.

You can clone this repo from salsa and use build script.

Note: Currently you need to follow these steps to work around lxc setup with apparmor.