Skip to content

Commit

Permalink
Clean up tmp dirs before linting and running tests (#206)
Browse files Browse the repository at this point in the history
* Clean up tmp dirs before linting and running tests

* gitignore test data

* package.json fix

* package.json fix

* package.json fix
  • Loading branch information
benallfree authored and RomainLanz committed Nov 1, 2017
1 parent 38587fa commit 05caeb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ npm-debug.log
.idea
out
.nyc_output
test/tmp
test/**/tmp
test/functional/database
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"main": "index.js",
"scripts": {
"lint": "standard",
"pretest": "npm run lint",
"posttest": "npm run coverage",
"test:local": "FORCE_COLOR=true DB=sqlite node bin/index.js --local",
"pretest": "npm run test:cleanup && npm run lint",
"test:cleanup": "rm -rf test/functional/database && rm -rf test/unit/tmp",
"posttest": "npm run test:cleanup && npm run coverage",
"test:local": "npm run test:cleanup && FORCE_COLOR=true DB=sqlite node bin/index.js --local",
"test": "nyc npm run test:local",
"test:win": "set FORCE_COLOR=true && node bin/index.js --win",
"coverage": "nyc report --reporter=text-lcov | coveralls"
Expand Down

0 comments on commit 05caeb3

Please sign in to comment.