Add ptest to ci and snapshot builds