move pretest/posttest into travis yml