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:
...
@@ -37,17 +37,9 @@ matrix:
fast_finish
:
true
fast_finish
:
true
include
:
include
:
-
node_js
:
"
0.8"
-
node_js
:
"
0.10"
env
:
COVERAGE=true DB=mysql DIALECT=mysql
env
:
COVERAGE=true
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=postgres
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=sqlite
allow_failures
:
allow_failures
:
-
node_js
:
"
0.8"
-
node_js
:
"
0.10"
env
:
COVERAGE=true DB=mysql DIALECT=mysql
env
:
COVERAGE=true
-
node_js
:
"
0.8"
\ No newline at end of file
env
:
COVERAGE=true DB=mysql DIALECT=postgres
-
node_js
:
"
0.8"
env
:
COVERAGE=true DB=mysql DIALECT=sqlite
\ No newline at end of file
Makefile
View file @
a391405
...
@@ -11,14 +11,16 @@ teaser:
...
@@ -11,14 +11,16 @@ teaser:
node -pe
"Array(20 + '
$(DIALECT)
'.length + 3).join('#')"
&&
\
node -pe
"Array(20 + '
$(DIALECT)
'.length + 3).join('#')"
&&
\
echo
''
echo
''
ifeq
(true,$(COVERAGE))
test
:
coveralls
else
test
:
test
:
@
if
[
-n
"
$$
COVERAGE"
]
;
then
\
@
if
[
"
$$
GREP"
]
;
then
\
make cover
&&
make coveralls-send;
\
@elif
[
"
$$
GREP"
]
;
\
then
\
make teaser
&&
./node_modules/mocha/bin/mocha --globals setImmediate,clearImmediate --check-leaks --colors -t 10000 --reporter
$(REPORTER)
-g
"
$$
GREP"
$(TESTS)
;
\
make teaser
&&
./node_modules/mocha/bin/mocha --globals setImmediate,clearImmediate --check-leaks --colors -t 10000 --reporter
$(REPORTER)
-g
"
$$
GREP"
$(TESTS)
;
\
else
\
else
\
make teaser
&&
./node_modules/mocha/bin/mocha --globals setImmediate,clearImmediate --check-leaks --colors -t 10000 --reporter
$(REPORTER)
$(TESTS)
;
\
make teaser
&&
./node_modules/mocha/bin/mocha --globals setImmediate,clearImmediate --check-leaks --colors -t 10000 --reporter
$(REPORTER)
$(TESTS)
;
\
fi
fi
endif
cover
:
cover
:
rm -rf coverage
\
rm -rf coverage
\
...
@@ -40,18 +42,23 @@ binary:
...
@@ -40,18 +42,23 @@ binary:
mariadb-cover
:
mariadb-cover
:
rm -rf coverage
rm -rf coverage
@
DIALECT
=
mariadb make cover
@
DIALECT
=
mariadb make cover
mv coverage coverage-mariadb
sqlite-cover
:
sqlite-cover
:
rm -rf coverage
rm -rf coverage
@
DIALECT
=
sqlite make cover
@
DIALECT
=
sqlite make cover
mv coverage coverage-sqlite
mysql-cover
:
mysql-cover
:
rm -rf coverage
rm -rf coverage
@
DIALECT
=
mysql make cover
@
DIALECT
=
mysql make cover
mv coverage coverage-mysql
postgres-cover
:
postgres-cover
:
rm -rf coverage
rm -rf coverage
@
DIALECT
=
postgres make cover
@
DIALECT
=
postgres make cover
mv coverage coverage-postgres
postgres-native-cover
:
postgres-native-cover
:
rm -rf coverage
rm -rf coverage
@
DIALECT
=
postgres-native make cover
@
DIALECT
=
postgres-native make cover
mv coverage coverage-postgresnative
binary-cover
:
binary-cover
:
rm -rf coverage
rm -rf coverage
@
./test/binary/sequelize.test.bats
@
./test/binary/sequelize.test.bats
...
@@ -62,7 +69,7 @@ merge-coverage:
...
@@ -62,7 +69,7 @@ merge-coverage:
./node_modules/.bin/lcov-result-merger
'coverage-*/lcov.info'
'coverage/lcov.info'
./node_modules/.bin/lcov-result-merger
'coverage-*/lcov.info'
'coverage/lcov.info'
coveralls-send
:
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
# 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