Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 410d4eb5
authored
Aug 21, 2013
by
Daniel Durante
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into posgres-single-con
2 parents
80917f02
20e8e2d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
.travis.yml
test/sequelize.executable.test.js
test/tmp/.gitkeep
.travis.yml
View file @
410d4eb
...
@@ -20,4 +20,5 @@ env:
...
@@ -20,4 +20,5 @@ env:
language
:
node_js
language
:
node_js
node_js
:
node_js
:
-
0.8
-
"
0.8"
-
"
0.10"
test/sequelize.executable.test.js
View file @
410d4eb
...
@@ -144,17 +144,22 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
...
@@ -144,17 +144,22 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
;(
function
(
flags
)
{
;(
function
(
flags
)
{
flags
.
forEach
(
function
(
flag
)
{
flags
.
forEach
(
function
(
flag
)
{
var
prepare
=
function
(
callback
)
{
var
prepare
=
function
(
callback
)
{
exec
(
"rm -rf ./*"
,
{
cwd
:
__dirname
+
'/tmp'
},
function
()
{
exec
(
"rm -rf ./*"
,
{
cwd
:
__dirname
+
'/tmp'
},
function
(
error
,
stdout
)
{
exec
(
"../../bin/sequelize --init"
,
{
cwd
:
__dirname
+
'/tmp'
},
function
()
{
console
.
log
(
error
,
stdout
)
exec
(
"cp ../assets/migrations/*-createPerson.js ./migrations/"
,
{
cwd
:
__dirname
+
'/tmp'
},
function
()
{
exec
(
"../../bin/sequelize --init"
,
{
cwd
:
__dirname
+
'/tmp'
},
function
(
error
,
stdout
)
{
exec
(
"cat ../support.js|sed s,/../,/../../, > ./support.js"
,
{
cwd
:
__dirname
+
'/tmp'
},
function
()
{
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
()
var
dialect
=
Support
.
getTestDialect
()
,
config
=
require
(
__dirname
+
'/config/config.js'
)
,
config
=
require
(
__dirname
+
'/config/config.js'
)
config
.
sqlite
.
storage
=
__dirname
+
"/tmp/test.sqlite"
config
.
sqlite
.
storage
=
__dirname
+
"/tmp/test.sqlite"
config
=
_
.
extend
(
config
,
config
[
dialect
],
{
dialect
:
dialect
})
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
)
exec
(
"../../bin/sequelize "
+
flag
,
{
cwd
:
__dirname
+
"/tmp"
},
callback
)
})
})
})
})
...
...
test/tmp/.gitkeep
0 → 100644
View file @
410d4eb
File mode changed
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment