Build packages if the test command passed and we're asked to