From c9990a53cb454d42ba2b825b25b4d28ac0068457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Sat, 24 Jun 2017 17:28:40 -0300 Subject: [PATCH] Adopt feedback --- .travis.yml | 2 +- .travis/build-site.sh | 6 +++--- .travis/build-sonar.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3ea0476e99..7835f0e612 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,7 @@ before_install: - bash .travis/configure-maven.sh install: true before_script: true -script: bash .travis/build-$BUILD.sh +script: source .travis/build-$BUILD.sh after_success: true diff --git a/.travis/build-site.sh b/.travis/build-site.sh index 6443cc54d6..3d90ab0b6a 100644 --- a/.travis/build-site.sh +++ b/.travis/build-site.sh @@ -13,9 +13,9 @@ fi ( - # Run the build, redirect output into the file - travis_wait ./mvnw install -DskipTests=true -B -V - travis_wait ./mvnw site site:stage -Psite -B -V + # Run the build, truncate output due to Travis log limits + travis_wait ./mvnw install -DskipTests=true -B -V | tail -100 + travis_wait ./mvnw site site:stage -Psite -B -V | tail -100 ) # create pmd-doc archive diff --git a/.travis/build-sonar.sh b/.travis/build-sonar.sh index 23a8a83fd2..60b4003e23 100644 --- a/.travis/build-sonar.sh +++ b/.travis/build-sonar.sh @@ -12,6 +12,6 @@ if ! travis_isPush; then fi -# Run the build, redirect output into the file -travis_wait ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=${SONAR_TOKEN} -B -V +# Run the build, truncate output due to Travis log limits +travis_wait ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=${SONAR_TOKEN} -B -V | tail -100