avoid sqlite db on travis and appveyor

This commit is contained in:
Aman Gupta
2015-10-07 16:06:31 -07:00
parent 75f648398a
commit c2940260e5

View File

@@ -112,7 +112,8 @@ proc writeTestResult*(name, category, target,
thisCommit, thisMachine)
proc open*() =
db = open(connection="testament.db", user="testament", password="",
let dbFile = if existsEnv("TRAVIS") or existsEnv("APPVEYOR"): ":memory:" else: "testament.db"
db = open(connection=dbFile, user="testament", password="",
database="testament")
createDb()
thisMachine = getMachine(db)