Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis CI skip test and deploy

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?

like image 282
Bolein95 Avatar asked Nov 16 '17 19:11

Bolein95


2 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"
like image 117
Samuel Dias Avatar answered Nov 13 '22 09:11

Samuel Dias


According to the official documentation, the way to do this is to put :

install: true

Here it is : https://docs.travis-ci.com/user/customizing-the-build/#skipping-the-installation-step

like image 32
Nazim Lachter Avatar answered Nov 13 '22 09:11

Nazim Lachter