changed travis CI to only build and upload apps if tests were successful