8
0
فهرست منبع

Merge pull request #452 from ckeditor/t/444

Tests: Added JSDoc validation on CI. Closes #444.
Piotrek Koszuliński 8 سال پیش
والد
کامیت
d73f7ac3e1
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 1
      .travis.yml
  2. 2 1
      gulpfile.js

+ 2 - 1
.travis.yml

@@ -15,11 +15,12 @@ before_install:
   - export DISPLAY=:99.0
   - sh -e /etc/init.d/xvfb start
 install:
-  - npm install mgit2 lerna @ckeditor/ckeditor5-dev-tests
+  - npm install mgit2 lerna @ckeditor/ckeditor5-dev-tests @ckeditor/ckeditor5-dev-docs
   - mgit bootstrap --resolver-url-template="https://github.com/\${ path }.git"
   - lerna bootstrap
 script:
   - npm t
+  - gulp docs:api-json --validate-only
 notifications:
   slack:
     rooms:

+ 2 - 1
gulpfile.js

@@ -59,7 +59,8 @@ function buildApiDocs() {
 			sourceFiles: [
 				process.cwd() + '/packages/ckeditor5-*/src/**/*.@(js|jsdoc)',
 				'!' + process.cwd() + '/packages/ckeditor5-*/src/lib/**/*.js'
-			]
+			],
+			validationOnly: process.argv[ 3 ] == '--validate-only'
 		} );
 }