Adjust build check phase for travis