set up postgres CI route

uses env flag TEST_POSTGRES since the sqlite test also runs with env flag CI true
This commit is contained in:
Michael C
2021-06-23 14:48:47 -04:00
parent 746dc4f81d
commit da92f2082d
5 changed files with 110 additions and 1 deletions

View File

@@ -23,6 +23,12 @@ async function init() {
await initDb();
const dbMode = config.mysql ? 'mysql'
: config.postgres ? 'postgres'
: 'sqlite'
// print database mode
console.log('Database Mode: ' + dbMode)
// Instantiate a Mocha instance.
const mocha = new Mocha();