This is an automated email from the ASF dual-hosted git repository.

gabor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-mr.git


The following commit(s) were added to refs/heads/master by this push:
     new 60c09f8  PARQUET-2023 Do not pipe the mvn output to pv (#890)
60c09f8 is described below

commit 60c09f8549952cea31af5f175885687b88449c29
Author: Martin Grigorov <[email protected]>
AuthorDate: Wed Apr 14 12:26:03 2021 +0300

    PARQUET-2023 Do not pipe the mvn output to pv (#890)
    
    * PARQUET-2023 Do not pipe the mvn output to pv
    
    Piping to pv looses the exit status of mvn and the builds never fail
    Use SLF4J Simple log file to collect all Maven logs
    Print the logs in case of build failure
---
 .travis.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index d742eb6..a961628 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -41,6 +41,10 @@ install:
   - sudo apt-get install -qq maven
   - java -version
   - mvn -version
-  - mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true 
-Dsource.skip=true | pv -fbi 60 > mvn_install.log || (cat mvn_install.log && 
false)
+  - travis_wait 60 mvn install --batch-mode -DskipTests=true 
-Dmaven.javadoc.skip=true -Dsource.skip=true 
-Dorg.slf4j.simpleLogger.logFile=mvn-install.log
   
-script: mvn verify --batch-mode javadoc:javadoc -P ci-test,$HADOOP_PROFILE | 
pv -fbi 60 > mvn_verify.log || (cat mvn_verify.log && false)
+script: travis_wait 60 mvn verify --batch-mode javadoc:javadoc -P 
ci-test,$HADOOP_PROFILE -Dorg.slf4j.simpleLogger.logFile=mvn-verify.log
+
+after_failure:
+  - cat mvn-install.log
+  - cat mvn-verify.log
\ No newline at end of file

Reply via email to