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

Commit f1e48abf by Sushant

(build) used symantic names for test and coverage commands

* like mysql, mariadb => test-mysql, test-mariadb
* all => test-all
* coverages test ,  mysql-cover => cover-mysql , cover-all
* Fixed issue with coverage merge
1 parent d5e38585
Showing with 19 additions and 19 deletions
......@@ -88,7 +88,7 @@
"main": "index",
"scripts": {
"test": "if [ $COVERAGE ]; then npm run codeclimate; else npm run jshint && npm run teaser && npm run test-unit && npm run test-integration; fi",
"test-docker": "docker-compose run sequelize /bin/sh -c \"npm run all\"",
"test-docker": "docker-compose run sequelize /bin/sh -c \"npm run test-all\"",
"test-docker-unit": "docker-compose run sequelize /bin/sh -c \"npm run test-unit-all\"",
"build-docker": "docker-compose build",
"docs": "node docs/docs-generator.js",
......@@ -110,26 +110,26 @@
"test-integration-sqlite":"DIALECT=sqlite npm run test-integration",
"test-integration-mssql":"DIALECT=mssql npm run test-integration",
"test-integration-all":"npm run test-integration-mysql && npm run test-integration-postgres && npm run test-integration-postgres-native && npm run test-integration-mssql && npm run test-integration-sqlite && npm run test-integration-mariadb",
"test-mysql": "DIALECT=mysql npm test",
"test-sqlite": "DIALECT=sqlite npm test",
"test-postgres": "DIALECT=postgres npm test",
"test-pgsql": "npm run test-postgres",
"test-postgres-native": "DIALECT=postgres-native npm test",
"test-postgresn": "npm run test-postgres-native",
"test-mariadb": "DIALECT=mariadb npm test",
"test-mssql": "DIALECT=mssql npm test",
"test-all": "npm run test-mysql && npm run test-sqlite && npm run test-postgres && npm run test-postgres-native && npm run test-mariadb && npm run test-mssql",
"cover": "rm -rf coverage && npm run teaser && COVERAGE=true ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -t 30000 --ui tdd 'test/integration/**/*.test.js'",
"mysql-cover": "DIALECT=mysql npm run cover && mv coverage coverage-mysql",
"sqlite-cover": "DIALECT=sqlite npm run cover && mv coverage coverage-sqlite",
"postgres-cover": "DIALECT=postgres npm run cover && mv coverage coverage-postgres",
"postgres-native-cover": "DIALECT=postgres-native npm run cover && mv coverage coverage-postgres-native",
"mariadb-cover": "DIALECT=mariadb npm run cover && mv coverage coverage-mariadb",
"mssql-cover": "DIALECT=mssql npm run cover && mv coverage coverage-mssql",
"merge-coverage": "rm -rf coverage && mkdir coverage && './node_modules/.bin/lcov-result-merger coverage-*/lcov.info' 'coverage/lcov.info'",
"cover-mysql": "DIALECT=mysql npm run cover && mv coverage coverage-mysql",
"cover-sqlite": "DIALECT=sqlite npm run cover && mv coverage coverage-sqlite",
"cover-postgres": "DIALECT=postgres npm run cover && mv coverage coverage-postgres",
"cover-postgres-native": "DIALECT=postgres-native npm run cover && mv coverage coverage-postgres-native",
"cover-mariadb": "DIALECT=mariadb npm run cover && mv coverage coverage-mariadb",
"cover-mssql": "DIALECT=mssql npm run cover && mv coverage coverage-mssql",
"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 < coverage/lcov.info",
"cover-all": "npm run mysql-cover && npm run postgres-cover && npm run postgres-native-cover && npm run mssql-cover && npm run sqlite-cover && npm run mariadb-cover && npm run merge-coverage",
"codeclimate": "npm run cover-all && npm run codeclimate-send",
"mysql": "DIALECT=mysql npm test",
"sqlite": "DIALECT=sqlite npm test",
"postgres": "DIALECT=postgres npm test",
"pgsql": "npm run postgres",
"postgres-native": "DIALECT=postgres-native npm test",
"postgresn": "npm run postgres-native",
"mariadb": "DIALECT=mariadb npm test",
"mssql": "DIALECT=mssql npm test",
"all": "npm run mysql && npm run sqlite && npm run postgres && npm run postgres-native && npm run mariadb && npm run mssql"
"codeclimate": "npm run cover-all && npm run codeclimate-send"
},
"engines": {
"node": ">=0.6.21"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!