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 a3914057
authored
May 17, 2014
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do all coverage calculations in a single job
1 parent
1ddd765c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
.travis.yml
Makefile
.travis.yml
View file @
a391405
...
...
@@ -37,17 +37,9 @@ matrix:
fast_finish
:
true
include
:
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=mysql
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=postgres
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=sqlite
-
node_js
:
"
0.10"
env
:
COVERAGE=true
allow_failures
:
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=mysql
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=postgres
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=sqlite
\ No newline at end of file
-
node_js
:
"
0.10"
env
:
COVERAGE=true
\ No newline at end of file
Makefile
View file @
a391405
...
...
@@ -11,14 +11,16 @@ teaser:
node -pe
"Array(20 + '
$(DIALECT)
'.length + 3).join('#')"
&&
\
echo
''
ifeq
(true,$(COVERAGE))
test
:
coveralls
else
test
:
@
if
[
-n
"
$$
COVERAGE"
]
;
then
\
make cover
&&
make coveralls-send;
\
@elif
[
"
$$
GREP"
]
;
\
then
\
@
if
[
"
$$
GREP"
]
;
then
\
make teaser
&&
./node_modules/mocha/bin/mocha --globals setImmediate,clearImmediate --check-leaks --colors -t 10000 --reporter
$(REPORTER)
-g
"
$$
GREP"
$(TESTS)
;
\
else
\
make teaser
&&
./node_modules/mocha/bin/mocha --globals setImmediate,clearImmediate --check-leaks --colors -t 10000 --reporter
$(REPORTER)
$(TESTS)
;
\
fi
endif
cover
:
rm -rf coverage
\
...
...
@@ -40,18 +42,23 @@ binary:
mariadb-cover
:
rm -rf coverage
@
DIALECT
=
mariadb make cover
mv coverage coverage-mariadb
sqlite-cover
:
rm -rf coverage
@
DIALECT
=
sqlite make cover
mv coverage coverage-sqlite
mysql-cover
:
rm -rf coverage
@
DIALECT
=
mysql make cover
mv coverage coverage-mysql
postgres-cover
:
rm -rf coverage
@
DIALECT
=
postgres make cover
mv coverage coverage-postgres
postgres-native-cover
:
rm -rf coverage
@
DIALECT
=
postgres-native make cover
mv coverage coverage-postgresnative
binary-cover
:
rm -rf coverage
@
./test/binary/sequelize.test.bats
...
...
@@ -62,7 +69,7 @@ merge-coverage:
./node_modules/.bin/lcov-result-merger
'coverage-*/lcov.info'
'coverage/lcov.info'
coveralls-send
:
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
&&
rm -rf ./coverage
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
&&
rm -rf ./coverage
*
# test aliases
...
...
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