Merge pull request #1148 from CartoDB/no-makefile

Simplify npm scripts
This commit is contained in:
Daniel G. Aubert 2019-12-02 15:14:17 +01:00 committed by GitHub
commit e6bbe8351d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -82,16 +82,10 @@
"pretest:setup": "npm run lint",
"test:setup": "NODE_ENV=test node test setup",
"pretest": "npm run test:setup",
"test": "npm run test:all",
"test:all": "npm run test:unit && npm run test:integration && npm run test:acceptance",
"test:acceptance": "NODE_ENV=test mocha -t 5000 --exit --recursive test/acceptance",
"test:integration": "NODE_ENV=test mocha --exit --recursive test/integration",
"test:unit": "NODE_ENV=test mocha --exit --recursive test/unit",
"test": "NODE_ENV=test mocha -t 5000 --exit --recursive test/acceptance test/integration test/unit",
"posttest": "npm run test:teardown",
"test:teardown": "NODE_ENV=test node test teardown",
"precover": "npm run test:setup",
"cover": "NODE_ENV=test nyc --reporter=lcov npm run test:all",
"postcover": "npm run test:teardown",
"cover": "nyc --reporter=lcov npm test",
"test:docker": "docker run -e \"NODEJS_VERSION=$NODE_VERSION\" -v `pwd`:/srv $DOCKER_IMAGE bash docker/scripts/test-setup.sh && docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v",
"docker:bash": "docker run -it -v `pwd`:/srv $DOCKER_IMAGE bash"
},

View File

@ -1,7 +1,6 @@
--
-- Windshaft test database
--
-- To use run ../prepare_db.sh
-- NOTE: requires a postgis template called template_postgis
--