Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: create docs test npm scripts #423

Merged
merged 1 commit into from
Feb 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .kokoro/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,4 @@ cd $(dirname $0)/..

npm install

npm run docs

# Check broken links
BIN=./node_modules/.bin

npm install broken-link-checker
npm install http-server
$BIN/http-server -p 8080 docs/ &
$BIN/blc http://localhost:8080 -r --exclude www.googleapis.com
npm run docs-test
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"source-map-support": "^0.5.6",
"stream-events": "^1.0.4",
"through2": "^3.0.0",
"typescript": "~3.3.0"
"typescript": "~3.3.0",
"broken-link-checker-local": "^0.2.0"
},
"scripts": {
"codecov": "nyc mocha build/test --reporter spec --slow 500 && codecov",
Expand All @@ -73,8 +74,10 @@
"fix": "gts fix && eslint --fix samples/*.js samples/**/*.js",
"prepare": "npm run compile",
"posttest": "npm run lint",
"system-test": "nyc mocha build/system-test --timeout 120000",
"samples-test": "echo no sample tests 😱"
"system-test": "cross-env GOOGLE_CLOUD_USE_GRPC_JS=1 nyc mocha --timeout 1200000 build/system-test && mocha build/system-test --timeout 120000",
"samples-test": "echo no sample tests 😱",
"docs-test": "blcl docs -r --exclude www.googleapis.com",
"predocs-test": "npm run docs"
},
"repository": "googleapis/gax-nodejs",
"keywords": [
Expand Down