Skip to content

Commit

Permalink
another attempt to fix Travis build, run maven with batch mode (don't…
Browse files Browse the repository at this point in the history
… log Progress: 125/150kB) to not exceed Travis build log size limit
  • Loading branch information
fe2s committed Oct 19, 2018
1 parent 5a12ca7 commit b7bb3b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,19 @@ stop:

test:
make start
mvn -Dtest=${TEST} clean compile test
# with --batch-mode maven doesn't print 'Progress: 125/150kB', the progress lines take up 90% of the log and causes
# Travis build to fail with 'The job exceeded the maximum log length, and has been terminated'
mvn --batch-mode -Dtest=${TEST} clean compile test
make stop

deploy:
make start
mvn clean deploy
mvn --batch-mode clean deploy
make stop

package:
make start
mvn clean package
mvn --batch-mode clean package
make stop

.PHONY: test
4 changes: 0 additions & 4 deletions src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Suppress verbose ContextCleaner (workaround for Travis build log size limit)
log4j.logger.org.apache.spark.ContextCleaner=WARN, stdout
log4j.additivity.org.apache.spark.ContextCleaner=false

# DEBUG
#log4j.logger.com.redislabs.provider.redis=DEBUG, stdout
#log4j.logger.org.apache.spark.sql.redis=DEBUG, stdout
Expand Down

0 comments on commit b7bb3b4

Please sign in to comment.