Always run all tests and test them each individually on travis

This commit is contained in:
Maxime Poulin 2016-05-02 00:55:45 -04:00
parent 228a2d33ee
commit 164b983f99
No known key found for this signature in database
GPG Key ID: CB63C36252F40D4B
3 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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
View File

@ -0,0 +1 @@
process.env.HOME = "test/fixtures";