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 305a45a7
authored
Jul 29, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restructured the makefile + added spec teaser
1 parent
11a2f7fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
Makefile
Makefile
View file @
305a45a
REPORTER
?=
dot
REPORTER
?=
dot
TESTS
=
$(
shell
find ./test/
*
-name
"*.test.js"
)
TESTS
=
$(
shell
find ./test/
*
-name
"*.test.js"
)
sqlite
:
@
DIALECT
=
sqlite ./node_modules/mocha/bin/mocha
\
--colors
\
--reporter
$(REPORTER)
\
$(TESTS)
mysql
:
# test commands
@
DIALECT
=
mysql ./node_modules/mocha/bin/mocha
\
--colors
\
--reporter
$(REPORTER)
\
$(TESTS)
postgres
:
teaser
:
@
DIALECT
=
postgres ./node_modules/mocha/bin/mocha
\
echo
""
&&
\
node -pe
"Array(20 + '
$(DIALECT)
'.length + 3).join('#')"
&&
\
echo
'# Running tests for
$(DIALECT)
#'
&&
\
node -pe
"Array(20 + '
$(DIALECT)
'.length + 3).join('#')"
&&
\
echo
''
test
:
make teaser
&&
\
./node_modules/mocha/bin/mocha
\
--colors
\
--colors
\
--reporter
$(REPORTER)
\
--reporter
$(REPORTER)
\
$(TESTS)
$(TESTS)
pgsql
:
postgres
sqlite
:
@
DIALECT
=
sqlite make
test
mysql
:
@
DIALECT
=
mysql make
test
postgres
:
@
DIALECT
=
postgres make
test
postgres-native
:
postgres-native
:
@
DIALECT
=
postgres-native ./node_modules/mocha/bin/mocha
\
@
DIALECT
=
postgres-native make
test
--colors
\
--reporter
$(REPORTER)
\
# test aliases
$(TESTS)
pgsql
:
postgres
postgresn
:
postgres-native
postgresn
:
postgres-native
all
:
make sqlite && make mysql && make postgres && make postgres-native
# test all the dialects \o/
all
:
sqlite mysql postgres postgres-native
.PHONY
:
sqlite mysql postgres pgsql postgres-native postgresn all
.PHONY
:
sqlite mysql postgres pgsql postgres-native postgresn all
test
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