This project demonstrates the usage of Travis CI for testing, building, signing and distributing an App. The gist from Johannes Würbach was a great help for me in setting up this project. A detailed explaination on how to use it will be published soon.
It combines the following services/tools:
- Dependencies with CocoaPods
- Testing with Kiwi
- Building with xctool
- CI with Travis CI
- Distribution with Testflight
- Distribution with Hockeyapp
Open Terminal and follow these steps:
git clone git@github.com:MattesGroeger/TravisExample-iOS.git
cd TravisExample-iOS
sudo gem install bundler
bundle install
pod install
open TravisExample.xcworkspace
Now you can inspect and run the App locally.
Please note that the latest version of xctool doesn't support Kiwi and Specta tests. You can manually rollback to version 0.1.11 by following these steps:
cd /usr/local
brew versions xctool
Now pick the git commit hash of version 0.1.11
and proceed:
git checkout 4cf7bf9 Library/Formula/xctool.rb
brew uninstall xctool
brew install xctool
Travis is still using an older version of xctool which works fine with Kiwi and Specta.