add build command to pretest script