http://docs.travis-ci.com/user/common-build-problems/#Mac%3A-Errors-running-CocoaPods を参考にしてbefore_installを追加