.travis.yml
{
"os": "osx",
"script": [
"xcodebuild test -workspace YourProject.xcworkspace -scheme YourProject -destination 'platform=iOS Simulator,name=iPhone 8,OS=latest'"
],
"language": "objective-c",
"osx_image": "xcode10",
"before_install": [
"gem install cocoapods",
"pod install"
],
"xcode_workspace": "YourProject.xcworkspace"
}