[英]GitLab CI with Maven integration tests - Java
I have a Maven project which contains only Java test classes (No main classes). 我有一个仅包含Java测试类(没有主类)的Maven项目。 I use mvn verify command to run integration-tests within the project.
我使用mvn verify命令在项目中运行集成测试。 Now I want to add this project into GitLab CI.
现在,我想将此项目添加到GitLab CI中。 I want to know how I can use my project with GitLab CI to do integration tests.
我想知道如何将我的项目与GitLab CI结合使用来进行集成测试。
Found the answer. 找到了答案。 It was pretty simple.
这很简单。
.gitlab-ci.yml file should contain below (minimum) .gitlab-ci.yml文件应包含以下内容(最小值)
stages:
- test
test:
stage: test
script:
- "mvn clean verify"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.