travis script
(cherry picked from commit da37f0f)