Travis CI skip test and deploy

Viewed 5542

My Travis tests fail, but I still want to deploy the app. Is it possible to skip the testing phase in Travis and continue to the deployment?

4 Answers

You can add a script with a echo to your .travis.yml file.

This will force Travis to run your script message instead of running tests automatically.

script:
- echo "skipping tests"

if you just want to skip tests but still build, you can invoke xcode build without the test option.

script:
- set -o pipefail
- xcodebuild -workspace YourWorkspace.xcworkspace -scheme YourScheme -destination platform\=yourDestinationPlatform build | xcpretty

Add this line to your .travis.yml file.

script: echo "Success!"

Related