feat(ci): Define linting stage for travis

This commit is contained in:
Bouncey
2019-02-16 08:53:15 +00:00
committed by mrugesh mohapatra
parent f45c3d4fa5
commit ec7df15c5f
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,9 @@ before_script:
jobs:
include:
- stage: Lint javaScript
script: npm run lint
- stage: Unit and Integration tests
script: npm test

View File

@ -18,9 +18,7 @@
"seed:auth-user": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedAuthUser",
"seed:challenges": "cross-env DEBUG=fcc:* node ./tools/scripts/seed/seedChallenges",
"postinstall": "npm run bootstrap",
"pretest": "npm-run-all -s test:lint",
"test": "npm-run-all -p test:*",
"test:challenge-formatting": "node ./tools/scripts/ci/ensure-challenge-formatting.js",
"test:client": "cd ./client && npm test && cd ../",
"test:curriculum": "cd ./curriculum && npm test && cd ../",
"test:guide-formatting": "node ./tools/scripts/ci/ensure-guide-formatting.js",