Skip to content

Commit

Permalink
Always run all tests and test them each individually on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpoulin64 committed May 8, 2016
1 parent 228a2d3 commit cc46614
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Expand Up @@ -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 changes: 8 additions & 3 deletions package.json
Expand Up @@ -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 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": [
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/env.js
@@ -0,0 +1 @@
process.env.HOME = "test/fixtures";

0 comments on commit cc46614

Please sign in to comment.