Extract Travis script and add debugging information