From 6cb526aa43ccad746a381eeee72053f4118fa05d Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Sun, 8 Oct 2017 01:58:03 +0200 Subject: [PATCH] Maven build generates too much output for Travis CI --- .travis.yml | 2 +- webgoat-container/src/test/resources/log4j-silent.properties | 1 - webgoat-container/src/test/resources/logback-test.xml | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 webgoat-container/src/test/resources/log4j-silent.properties create mode 100644 webgoat-container/src/test/resources/logback-test.xml diff --git a/.travis.yml b/.travis.yml index 48e5aa3f6..cbab13409 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ jdk: install: "/bin/true" script: - mvn clean install - - if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then mvn "-Dbuild.number=$TRAVIS_BUILD_NUMBER" clean install -q; else mvn clean install -q; fi + - if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then mvn "-Dbuild.number=$TRAVIS_BUILD_NUMBER" clean install -q -Dlogging.config=$HOME/build/$TRAVIS_REPO_SLUG/webgoat-container/src/test/resources/logback-test.xml ; else mvn clean install -q -Dlogging.config=$HOME/build/$TRAVIS_REPO_SLUG/webgoat-container/src/test/resources/logback-test.xml ; fi cache: directories: - $HOME/.m2 diff --git a/webgoat-container/src/test/resources/log4j-silent.properties b/webgoat-container/src/test/resources/log4j-silent.properties deleted file mode 100644 index 5a25ce19b..000000000 --- a/webgoat-container/src/test/resources/log4j-silent.properties +++ /dev/null @@ -1 +0,0 @@ -log4j.rootLogger=INFO diff --git a/webgoat-container/src/test/resources/logback-test.xml b/webgoat-container/src/test/resources/logback-test.xml new file mode 100644 index 000000000..adfa02c68 --- /dev/null +++ b/webgoat-container/src/test/resources/logback-test.xml @@ -0,0 +1 @@ + \ No newline at end of file