ci: Add --pre-cmd and --post-cmd options

Signed-off-by: Hao Liu <hliu@redhat.com>