Make travis skip firebird tests

This commit is contained in:
Timothy Warren 2014-11-04 13:07:43 -05:00
parent 7ef2385da9
commit 456d68c016
2 changed files with 8 additions and 3 deletions

View File

@ -33,10 +33,9 @@ testBase._setUp(qb, function(test, err, rows) {
tests["mysql adapter with query builder"] = function(test) { tests["mysql adapter with query builder"] = function(test) {
test.expect(1); test.expect(1);
test.ok(testBase.qb); test.ok(testBase.qb);
test.done();
// Close the db connection // Close the db connection
connection.end(); connection.end();
test.done();
}; };
// Export the final test object // Export the final test object

View File

@ -9,6 +9,13 @@ var config = require('../config.json')[adapterName];
config.conn.database = __dirname + config.conn.database; config.conn.database = __dirname + config.conn.database;
var nodeQuery = require('../../lib/node-query'); var nodeQuery = require('../../lib/node-query');
// Skip on TravisCi
if (process.env.CI)
{
module.exports = {};
return;
}
// Set up the connection // Set up the connection
try { try {
var Firebird = require(adapterName); var Firebird = require(adapterName);
@ -24,7 +31,6 @@ try {
// Connect to the database // Connect to the database
Firebird.attach(config.conn, function(err, db) { Firebird.attach(config.conn, function(err, db) {
if (err) { if (err) {
throw new Error(err);
console.error(err); console.error(err);
} }
conn = db; conn = db;