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 70e92ce2
authored
Apr 26, 2016
by
Mick Hansen
Committed by
Jan Aagaard Meier
Apr 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds a sscce template where code can easily be copied and run inside docker (#5781)
1 parent
e81f13e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
.gitignore
package.json
sscce_template.js
test/support.js
.gitignore
View file @
70e92ce
...
...
@@ -12,3 +12,4 @@ test/sqlite/test.sqlite
coverage-*
site
docs/api/tmp.md
ssce.js
package.json
View file @
70e92ce
...
...
@@ -129,7 +129,11 @@
"cover-all"
:
"npm run cover-mysql && npm run cover-postgres && npm run cover-postgres-native && npm run cover-mssql && npm run cover-sqlite && npm run cover-mariadb && npm run merge-coverage"
,
"merge-coverage"
:
"rm -rf coverage && mkdir coverage && ./node_modules/.bin/lcov-result-merger 'coverage-*/lcov.info' 'coverage/lcov.info'"
,
"codeclimate-send"
:
"npm install -g codeclimate-test-reporter && CODECLIMATE_REPO_TOKEN=ce835a510bbf423a5ab5400a9bdcc2ec2d189d840b31657c6ee7cb9916b161d6 codeclimate-test-reporter < coverage/lcov.info"
,
"codeclimate"
:
"npm run cover-all && npm run codeclimate-send"
"codeclimate"
:
"npm run cover-all && npm run codeclimate-send"
,
"sscce"
:
"docker-compose run sequelize /bin/sh -c
\"
node sscce.js
\"
"
,
"sscce-mysql"
:
"DIALECT=mysql npm run sscce"
,
"sscce-postgres"
:
"DIALECT=postgres npm run sscce"
,
"sscce-sqlite"
:
"DIALECT=sqlite npm run sscce"
},
"engines"
:
{
"node"
:
">=0.6.21"
...
...
sscce_template.js
0 → 100644
View file @
70e92ce
/*
* Copy this file to ./sscce.js
* Add code from issue
* npm run sscce-{dialect}
*/
var
Sequelize
=
require
(
'./index'
);
var
sequelize
=
require
(
'./test/support'
).
createSequelizeInstance
();
test/support.js
View file @
70e92ce
...
...
@@ -225,9 +225,11 @@ var Support = {
}
};
beforeEach
(
function
()
{
this
.
sequelize
=
Support
.
sequelize
;
});
if
(
typeof
beforeEach
!==
'undefined'
)
{
beforeEach
(
function
()
{
this
.
sequelize
=
Support
.
sequelize
;
});
}
Support
.
sequelize
=
Support
.
createSequelizeInstance
();
module
.
exports
=
Support
;
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