Try running all the setup commands for travis in the script section instead of before script