From cb5ac9014e7e432bfc7cbced9220081a35fe49d2 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 8 Jun 2017 10:40:10 -0700 Subject: [PATCH] Include apidoc in test script (#8797) * test(docs): include apidoc in script * fix(test): also run apidoc on Travis --- .travis.yml | 1 + package.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5db716d922..6b5277a683 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,3 +33,4 @@ env: - TEST="test:common" COVERAGE=true - TEST="test:karma" COVERAGE=true - TEST="client:unit" COVERAGE=true + - TEST="apidoc" diff --git a/package.json b/package.json index 36372e0fe7..5074830b0b 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ }, "scripts": { "lint": "eslint --ext .js,.vue .", - "test": "npm run lint && gulp test && npm run client:unit", + "test": "npm run lint && gulp test && npm run client:unit && gulp apidoc", "test:build": "gulp test:prepare:build", "test:api-v3": "gulp test:api-v3", "test:api-v3:unit": "gulp test:api-v3:unit", @@ -159,7 +159,8 @@ "client:e2e": "node test/client/e2e/runner.js", "client:test": "npm run client:unit && npm run client:e2e", "start": "gulp run:dev", - "postinstall": "bower --config.interactive=false install -f && gulp build && npm run client:build" + "postinstall": "bower --config.interactive=false install -f && gulp build && npm run client:build", + "apidoc": "gulp apidoc" }, "devDependencies": { "babel-plugin-istanbul": "^4.0.0",