fix #1918 skip predexing task when building on travis server

fix #1918 skip predexing task when building on travis server