Test deploydb using different database providers using travis.

- Fixes #127
This commit is contained in:
Giri Dandu 2015-04-06 18:52:48 -04:00
parent beeac6fc29
commit 496c0c1ac7
6 changed files with 699 additions and 643 deletions

View File

@ -12,3 +12,7 @@ notifications:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
env:
- DB=h2
- DB=mysql
- DB=postgres

View File

@ -0,0 +1,25 @@
database:
driverClass: com.mysql.jdbc.Driver
user: travis
url: "jdbc:mysql://localhost:3306/deploydb"
# DeployDB base configuration directory (cannonical path)
# YAML configuration files for models - services, environments, pipelines,
# webhooks and promotions - should be stored in respective sub-directories
#configDirectory: config
whoas:
queue:
type: "com.github.lookout.whoas.InMemoryQueue"
runnerType: "com.github.lookout.whoas.SequentialHookRunner"
logging:
level: INFO
loggers:
org.hibernate.SQL: ALL
appenders:
- type: file
currentLogFilename: ./logs/deploydb-cucumber.log
threshold: ALL
archive: false
timeZone: UTC

View File

@ -0,0 +1,25 @@
database:
driverClass: org.postgresql.Driver
user: postgres
url: "jdbc:postgresql://localhost/travis_ci_test"
# DeployDB base configuration directory (cannonical path)
# YAML configuration files for models - services, environments, pipelines,
# webhooks and promotions - should be stored in respective sub-directories
#configDirectory: config
whoas:
queue:
type: "com.github.lookout.whoas.InMemoryQueue"
runnerType: "com.github.lookout.whoas.SequentialHookRunner"
logging:
level: INFO
loggers:
org.hibernate.SQL: ALL
appenders:
- type: file
currentLogFilename: ./logs/deploydb-cucumber.log
threshold: ALL
archive: false
timeZone: UTC

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,9 @@ import org.joda.time.DateTimeUtils
this.metaClass.mixin(cucumber.api.groovy.Hooks)
Before {
startAppWithConfiguration('deploydb.cucumber.yml')
def env = System.getenv()
databaseProv = env['DB'] == null ? "h2" : env['DB']
startAppWithConfiguration("deploydb.${databaseProv}.cucumber.yml")
startWebhookTestServerWithConfiguration('webhookTestServer.example.yml')
}