0

My goal is : mvn -q spring-project/pom.xml verify -Pe2e

i am getting below error Error in travis build

Travis full build : https://travis-ci.org/github/JosephThachilGeorge/TDDTEST/jobs/715649594#L855

My project directory: https://github.com/JosephThachilGeorge/TDDTEST

With .travis.yml below goals are working perfectly

  • mvn -f spring-project/pom.xml clean verify -Pjacoco coveralls:report
  • mvn -f spring-project/pom.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent install org.jacoco:jacoco-maven-plugin:report
  • mvn -f spring-project/pom.xml sonar:sonar -Dsonar.projectKey=JosephThachilGeorge_TDDTEST
  • mvn -f spring-project/pom.xml verify -Pfailsafe

Only i have problem with end to end test goal : mvn -q spring-project/pom.xml verify -Pe2e

My project pom is in below location: https://github.com/JosephThachilGeorge/TDDTEST/tree/master/spring-project

  • Did you mean to execute `mvn -q -f spring-project/pom.xml verify -Pe2e` instead of `mvn -q spring-project/pom.xml verify -Pe2e`? – Turing85 Aug 14 '20 at 16:27
  • mvn -f spring-project/pom.xml verify -Pe2e and mvn -q spring-project/pom.xml verify -Pe2e I tried above both goals , in both case i am getting above error – Joseph George Aug 14 '20 at 17:23
  • Can you please link to the failed `travis`-run using `mvn -f spring-project/pom.xml verify -Pe2e`? – Turing85 Aug 14 '20 at 17:28
  • @JosephGeorge > cd spring-project then run `mvn -q verify -Pe2e`. I tried to run you code using mvnw - but its huge project. – Dinesh Dontha Aug 14 '20 at 17:31
  • I am pretty sure that it will execute `mvn -f spring-project/pom.xml verify -Pe2e` since you use this command multiple times in `.travis.yml`. – Turing85 Aug 14 '20 at 17:39
  • [Just as I said...](https://api.travis-ci.org/v3/job/717994622/log.txt) --- `The job exceeded the maximum log length, and has been terminated.` - This is a different error. I would suggest You reduce the log level of your tests. – Turing85 Aug 14 '20 at 17:44
  • @Turing85 Yes i tried withn "mvn -f spring-project/pom.xml verify -Pe2e" below is my log : https://travis-ci.org/github/JosephThachilGeorge/TDDTEST – Joseph George Aug 14 '20 at 17:45
  • That is a different error/question (see my last comment). [Please limit yourself to one question per post](https://meta.stackexchange.com/questions/222735/can-i-ask-only-one-question-per-post). – Turing85 Aug 14 '20 at 17:49
  • @Turing85 when i am giving "mvn -f spring-project/pom.xml verify -Pe2e" travis is showing "The job exceeded the maximum log length, and has been terminated" It is not a big project , i have only 3 e2e test. Theses e2e tests are working in eclipse build – Joseph George Aug 14 '20 at 17:50
  • It is a limitation imposed on you by travis-ci. Again: reduce the log level for whatever e2e test framework you are using. – Turing85 Aug 14 '20 at 17:50
  • My .travis.yml link is : https://github.com/JosephThachilGeorge/TDDTEST – Joseph George Aug 14 '20 at 17:51
  • I tried to change the goal to reduce build size, But error "The goal you specified requires a project to execute but there is no POM " – Joseph George Aug 14 '20 at 17:54
  • I tried to reduce log with the help of below link : https://stackoverflow.com/questions/4782089/how-to-change-maven-logging-level-to-display-only-warning-and-errors But i got travis error "The goal you specified requires a project to execute but there is no POM" – Joseph George Aug 14 '20 at 17:57
  • @Turing85 Is there any way can i reduce the log level of travis using mvn command ? – Joseph George Aug 14 '20 at 18:09
  • Not that I know of, no. You have to configure your e2e framework/its logger to reduce its log level. – Turing85 Aug 14 '20 at 18:11
  • Move your project pom file into the root location of your project.. than you can use the defaults. Makes life easier. – khmarbaise Aug 15 '20 at 09:25

0 Answers0