chore: add api-report check to travis (#8023)

This commit is contained in:
Alexander Vakrilov
2019-10-29 14:52:04 +02:00
committed by Manol Donev
parent 86339250d8
commit 1c694d3165
3 changed files with 5 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ script:
- npm run setup - npm run setup
- npm run unit-test - npm run unit-test
# public API changes check
- npm run api-extractor-ci
# circular references check # circular references check
- cd tests && npm i - cd tests && npm i
- node_modules/.bin/webpack --env.android - node_modules/.bin/webpack --env.android

View File

@@ -69,6 +69,7 @@ git checkout -b <my-fix-branch> master
- Rebase your changes to the latest master: `git pull --rebase upstream master`. - Rebase your changes to the latest master: `git pull --rebase upstream master`.
- Ensure all unit test are green for Android and iOS. Check [running unit tests](DevelopmentWorkflow.md#running-unit-tests). - Ensure all unit test are green for Android and iOS. Check [running unit tests](DevelopmentWorkflow.md#running-unit-tests).
- Ensure your changes pass tslint validation. (run `npm run tslint` in the root of the repo). - Ensure your changes pass tslint validation. (run `npm run tslint` in the root of the repo).
- If you've made changes to a public API, make sure you update and add the `api-reports/NativeScript.api.md` file to the PR. (run `npm run api-extractor` to update the api-report and definitions).
6. Push your fork. If you have rebased you might have to use force-push your branch: 6. Push your fork. If you have rebased you might have to use force-push your branch:
``` ```

View File

@@ -47,6 +47,7 @@
"unit-test-watch": "mocha-typescript-watch -p unit-tests/tsconfig.json --opts unit-tests/mocha.opts", "unit-test-watch": "mocha-typescript-watch -p unit-tests/tsconfig.json --opts unit-tests/mocha.opts",
"dev-link-tns-core-modules-widgets": "(cd tns-core-modules-widgets/dist/package && npm link) && (cd nativescript-core && npm i ../tns-core-modules-widgets/dist/package --save)", "dev-link-tns-core-modules-widgets": "(cd tns-core-modules-widgets/dist/package && npm link) && (cd nativescript-core && npm i ../tns-core-modules-widgets/dist/package --save)",
"api-extractor": "api-extractor run --local --verbose && (cd nativescript-core && cat nativescript-core.header nativescript-core.d.ts > tmp_file && mv tmp_file nativescript-core.d.ts)", "api-extractor": "api-extractor run --local --verbose && (cd nativescript-core && cat nativescript-core.header nativescript-core.d.ts > tmp_file && mv tmp_file nativescript-core.d.ts)",
"api-extractor-ci": "api-extractor run --verbose",
"typedoc": "npm run api-extractor && typedoc --tsconfig tsconfig.typedoc.json", "typedoc": "npm run api-extractor && typedoc --tsconfig tsconfig.typedoc.json",
"typedoc-dev": "npm run typedoc && cd bin/dist/apiref && npx http-server", "typedoc-dev": "npm run typedoc && cd bin/dist/apiref && npx http-server",
"build-core": "sh ./build/build-core.sh", "build-core": "sh ./build/build-core.sh",