不要怂,就是干,撸起袖子干!

Commit a3914057 by Jan Aagaard Meier

Do all coverage calculations in a single job

1 parent 1ddd765c
Showing with 16 additions and 17 deletions
......@@ -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
......@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!