Travis CI跳过测试并部署

Bol*_*n95 4 continuous-integration continuous-deployment travis-ci

我的Travis测试失败,但我仍想部署该应用程序。是否可以跳过Travis中的测试阶段并继续进行部署?

小智 9

您可以在文件中添加script带有的。echo.travis.yml

这将迫使Travis运行脚本消息,而不是自动运行测试。

script:
- echo "skipping tests"
Run Code Online (Sandbox Code Playgroud)