Skip to content

Commit

Permalink
ci: check formats
Browse files Browse the repository at this point in the history
  • Loading branch information
d-yokoi committed Mar 4, 2019
1 parent 0ad8fbc commit 8329e74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ node_js:
matrix:
include:
- node_js: "lts/*"
env: TEST_SUITE=standard
env: TEST_SUITE=format:ci
- node_js: "lts/*"
env: TEST_SUITE=coverage
env:
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@
"coverage-report": "npm run build && npm run nobuild:coverage-report",
"coverage-html": "npm run build && npm run nobuild:coverage-html",
"coverage": "npm run build && npm run nobuild:coverage",
"format": "prettier ts_src/*.ts ts_src/**/*.ts --ignore-path ./.prettierignore --write",
"format": "npm run prettier -- --write",
"format:ci": "npm run prettier -- --check",
"integration": "npm run build && npm run nobuild:integration",
"nobuild:coverage-report": "nyc report --reporter=lcov",
"nobuild:coverage-html": "nyc report --reporter=html",
"nobuild:coverage": "nyc --check-coverage --branches 90 --functions 90 --lines 90 mocha",
"nobuild:integration": "mocha --timeout 50000 test/integration/",
"nobuild:unit": "mocha",
"prepare": "npm run build",
"prettier": "prettier ts_src/*.ts ts_src/**/*.ts --ignore-path ./.prettierignore",
"test": "npm run build && npm run nobuild:coverage",
"unit": "npm run build && npm run nobuild:unit"
},
Expand Down

1 comment on commit 8329e74

@Neng908
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8328e74

Please sign in to comment.