promotably / api

API service
Eclipse Public License 1.0
0 stars 1 forks source link

Db version mis-match doesn't break the build #256

Open vrivellino opened 9 years ago

vrivellino commented 9 years ago

Just noticed this in Jenkins:

+ lein midje 'api.integration.*'

Compiling api.connection-customizer

log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

15:45:15 INFO                    main api.components         Loggly appender is attached? true
15:45:15 INFO                    main api.components         Environment is :integration
15:45:15 INFO                    main c3p0.C3P0Registry      Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
15:45:15 INFO                    main api.components         Connecting to DB at 127.0.0.1:20131

15:45:15 INFO                    main drift.runner           Current database version: 20150604164644
15:45:16 INFO                    main drift.runner           Updating to version: 0

15:45:17 INFO                    main drift.runner           No changes were made to the database.
15:45:17 INFO                    main drift.runner           Current database version: 20150604164644
15:45:17 INFO                    main drift.runner           Updating to version: 0
15:45:17 INFO                    main drift.runner           No changes were made to the database.
15:45:17 ERROR                   main integration.helper     Expected db version 20150524184432

Unfortunately that error does not break the build. ie: lein midje 'api.integration.*' exited with 0, instead of non-zero.