Remove husky again, move lint as test to travis

This commit is contained in:
rejas 2020-03-11 08:52:25 +01:00
parent ca2571b438
commit c3d57eef4f
2 changed files with 2 additions and 7 deletions

View File

@ -14,9 +14,9 @@ before_script:
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"
- sleep 5 - sleep 5
script: script:
- npm run test:lint
- npm run test:e2e - npm run test:e2e
- npm run test:unit - npm run test:unit
- grunt
after_script: after_script:
- npm list - npm list
cache: cache:

View File

@ -12,6 +12,7 @@
"test": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests --recursive", "test": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests --recursive",
"test:unit": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests/unit --recursive", "test:unit": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests/unit --recursive",
"test:e2e": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests/e2e --recursive", "test:e2e": "NODE_ENV=test ./node_modules/mocha/bin/mocha tests/e2e --recursive",
"test:lint": "grunt",
"config:check": "node tests/configs/check_config.js", "config:check": "node tests/configs/check_config.js",
"lint": "grunt" "lint": "grunt"
}, },
@ -46,7 +47,6 @@
"grunt-stylelint": "latest", "grunt-stylelint": "latest",
"grunt-yamllint": "latest", "grunt-yamllint": "latest",
"http-auth": "^3.2.3", "http-auth": "^3.2.3",
"husky": "^4.2.3",
"jsdom": "^11.6.2", "jsdom": "^11.6.2",
"jshint": "^2.10.2", "jshint": "^2.10.2",
"mocha": "^7.0.0", "mocha": "^7.0.0",
@ -80,10 +80,5 @@
}, },
"_moduleAliases": { "_moduleAliases": {
"node_helper": "js/node_helper.js" "node_helper": "js/node_helper.js"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
} }
} }