From cce4bd0079a29dbf183d323f4b896d53f18905ed Mon Sep 17 00:00:00 2001 From: junderw Date: Mon, 1 Apr 2019 14:33:25 +0900 Subject: [PATCH] Add git diff check to travis --- .travis.yml | 4 ++++ package.json | 1 + 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index e5a5795..10a45ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,10 @@ node_js: - "lts/*" - "9" - "10" +matrix: + include: + - node_js: "lts/*" + env: TEST_SUITE=gitdiff:ci env: - TEST_SUITE=test script: npm run-script $TEST_SUITE diff --git a/package.json b/package.json index a9e2750..3cfb386 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "coverage": "nyc --branches 100 --functions 100 --check-coverage npm run unit", "format": "npm run prettier -- --write", "format:ci": "npm run prettier -- --check", + "gitdiff:ci": "npm run build && git diff --exit-code", "lint": "tslint -p tsconfig.json -c tslint.json", "prettier": "prettier 'ts_src/**/*.ts' --ignore-path ./.prettierignore", "test": "npm run build && npm run format:ci && npm run lint && npm run unit",