在travis ci中跳过mvn测试-B

时间:2015-03-16 14:19:26

标签: java travis-ci

我正在使用travis ci进行this项目。我想跳过测试,所以在.travis.yml我添加了这个:

install: mvn clean package eclipse:eclipse -D eclipse.pde install -DskipTests=true -Darguments=-DskipTests

但它总是运行mvn test -B。我怎么能避免这个?

2 个答案:

答案 0 :(得分:1)

构建配置就在那里 - http://docs.travis-ci.com/user/build-configuration/

所以你需要将“install”作为空命令。示例 - https://github.com/checkstyle/checkstyle/blob/master/.travis.yml#L21

答案 1 :(得分:0)

对于travis中的跳过测试,您需要进行以下配置

[Route("[controller]")] // there are placeholders for common patterns as [area], [controller], [action], etc. [HttpGet("")] // empty is valid. url.com/prefix [Route("")] // empty is valid. url.com/ [HttpGet("/otherprefix/name")] // starting with / won't use the route prefix [HttpGet("name/{id}")] public IActionResult Index(int id){ ... // id will bind from route param. [HttpGet("{id:int:required}")] // you can add some simple matching rules too.

install: true