不要怂,就是干,撸起袖子干!

Commit 410d4eb5 by Daniel Durante

Merge branch 'master' into posgres-single-con

2 parents 80917f02 20e8e2d5
......@@ -20,4 +20,5 @@ env:
language: node_js
node_js:
- 0.8
- "0.8"
- "0.10"
......@@ -144,17 +144,22 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
;(function(flags) {
flags.forEach(function(flag) {
var prepare = function(callback) {
exec("rm -rf ./*", { cwd: __dirname + '/tmp' }, function() {
exec("../../bin/sequelize --init", { cwd: __dirname + '/tmp' }, function() {
exec("cp ../assets/migrations/*-createPerson.js ./migrations/", { cwd: __dirname + '/tmp' }, function() {
exec("cat ../support.js|sed s,/../,/../../, > ./support.js", { cwd: __dirname + '/tmp' }, function() {
exec("rm -rf ./*", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
exec("../../bin/sequelize --init", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
exec("cp ../assets/migrations/*-createPerson.js ./migrations/", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
exec("cat ../support.js|sed s,/../,/../../, > ./support.js", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
var dialect = Support.getTestDialect()
, config = require(__dirname + '/config/config.js')
config.sqlite.storage = __dirname + "/tmp/test.sqlite"
config = _.extend(config, config[dialect], { dialect: dialect })
exec("echo '" + JSON.stringify(config) + "' > config/config.json", { cwd: __dirname + '/tmp' }, function() {
exec("echo '" + JSON.stringify(config) + "' > config/config.json", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
exec("../../bin/sequelize " + flag, { cwd: __dirname + "/tmp" }, callback)
})
})
......
File mode changed
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!