Add git diff check to travis

This commit is contained in:
junderw 2019-04-01 14:33:25 +09:00
parent 6194c3f3ff
commit cce4bd0079
No known key found for this signature in database
GPG Key ID: B256185D3A971908
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,10 @@ node_js:
- "lts/*" - "lts/*"
- "9" - "9"
- "10" - "10"
matrix:
include:
- node_js: "lts/*"
env: TEST_SUITE=gitdiff:ci
env: env:
- TEST_SUITE=test - TEST_SUITE=test
script: npm run-script $TEST_SUITE script: npm run-script $TEST_SUITE

View File

@ -10,6 +10,7 @@
"coverage": "nyc --branches 100 --functions 100 --check-coverage npm run unit", "coverage": "nyc --branches 100 --functions 100 --check-coverage npm run unit",
"format": "npm run prettier -- --write", "format": "npm run prettier -- --write",
"format:ci": "npm run prettier -- --check", "format:ci": "npm run prettier -- --check",
"gitdiff:ci": "npm run build && git diff --exit-code",
"lint": "tslint -p tsconfig.json -c tslint.json", "lint": "tslint -p tsconfig.json -c tslint.json",
"prettier": "prettier 'ts_src/**/*.ts' --ignore-path ./.prettierignore", "prettier": "prettier 'ts_src/**/*.ts' --ignore-path ./.prettierignore",
"test": "npm run build && npm run format:ci && npm run lint && npm run unit", "test": "npm run build && npm run format:ci && npm run lint && npm run unit",