[ci] add more logging during build-site.sh execution

This commit is contained in:
Andreas Dangel
2017-07-08 12:15:17 +02:00
parent 4efa375a06
commit a3a1f1b30b

View File

@ -14,11 +14,17 @@ fi
( (
# Run the build, truncate output due to Travis log limits # Run the build, truncate output due to Travis log limits
echo -e "\n\nExecuting ./mvnw install...\n\n"
travis_wait ./mvnw install -DskipTests=true -B -V | tail -100 travis_wait ./mvnw install -DskipTests=true -B -V | tail -100
echo -e "Finished executing ./mvnw install\n\n"
echo -e "\n\nExecuting ./mvnw site site:stage...\n\n"
travis_wait ./mvnw site site:stage -Psite -B -V | tail -100 travis_wait ./mvnw site site:stage -Psite -B -V | tail -100
echo -e "Finished executing ./mvnw site site:stage...\n\n"
) )
# create pmd-doc archive echo -e "\n\nCreating pmd-doc archive...\n\n"
( (
cd target cd target
mv staging pmd-doc-${VERSION} mv staging pmd-doc-${VERSION}
@ -32,7 +38,7 @@ fi
( (
if [[ "$VERSION" == *-SNAPSHOT && "$TRAVIS_BRANCH" == "master" ]]; then if [[ "$VERSION" == *-SNAPSHOT && "$TRAVIS_BRANCH" == "master" ]]; then
# Uploading snapshot site... echo -e "\n\nUploading snapshot site...\n\n"
travis_wait rsync -ah --stats --delete target/pmd-doc-${VERSION}/ ${PMD_SF_USER}@web.sourceforge.net:/home/project-web/pmd/htdocs/snapshot/ | tail -100 travis_wait rsync -ah --stats --delete target/pmd-doc-${VERSION}/ ${PMD_SF_USER}@web.sourceforge.net:/home/project-web/pmd/htdocs/snapshot/ | tail -100
fi fi
) )