Always run all tests and test them each individually on travis
This commit is contained in:
parent
228a2d33ee
commit
164b983f99
@ -18,3 +18,9 @@ deploy:
|
||||
node: '4'
|
||||
tags: true
|
||||
repo: thelounge/lounge
|
||||
|
||||
script:
|
||||
- npm run test:mocha
|
||||
- npm run lint:js
|
||||
- npm run lint:css
|
||||
|
||||
|
11
package.json
11
package.json
@ -12,9 +12,14 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node index",
|
||||
"build": "grunt && handlebars client/views/ -e tpl -f client/js/lounge.templates.js",
|
||||
"test": "HOME=test/fixtures mocha test/**/*.js && npm run lint",
|
||||
"lint": "eslint . && stylelint \"**/*.css\"",
|
||||
"build": "npm run build:grunt && npm run build:handlebars",
|
||||
"build:grunt": "grunt",
|
||||
"build:handlebars": "handlebars client/views/ -e tpl -f client/js/lounge.templates.js",
|
||||
"test": "npm run test:mocha; npm run lint",
|
||||
"test:mocha": "mocha -r test/fixtures/env.js test/**/*.js",
|
||||
"lint": "npm run lint:js; npm run lint:css",
|
||||
"lint:js": "eslint .",
|
||||
"lint:css": "stylelint \"**/*.css\"",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
"keywords": [
|
||||
|
1
test/fixtures/env.js
vendored
Normal file
1
test/fixtures/env.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
process.env.HOME = "test/fixtures";
|
Loading…
Reference in New Issue
Block a user