build(aio): move gulp tasks to package.json

Generate the docs with `yarn docs`.
Test the doc generation code with `yarn docs-test`

The docs are automatically built as part of the `yarn build` task,
so there is no need to rebuild them in the test_aio.sh file
This commit is contained in:
Peter Bacon Darwin
2017-03-03 11:18:15 +00:00
committed by Igor Minar
parent 8757656508
commit ab0db66bf7
8 changed files with 12 additions and 79 deletions

0
scripts/ci-lite/test_aio.sh Executable file
View File

0
scripts/ci-lite/test_docs.sh Executable file
View File

View File

@ -17,12 +17,6 @@ source ${thisDir}/_travis-fold.sh
yarn run lint
travisFoldEnd "test.aio.lint"
# Generate docs files
# TODO(i): why is this in 'test' phase and not in the 'build' phase?
travisFoldStart "test.aio.doc-gen"
$(npm bin)/gulp docs
travisFoldEnd "test.aio.doc-gen"
# Start xvfb for local Chrome used for testing
if [[ ${TRAVIS} ]]; then

View File

@ -10,6 +10,6 @@ source ${thisDir}/_travis-fold.sh
travisFoldStart "test.docs"
(
cd ${PROJECT_ROOT}/aio
$(npm bin)/gulp docs-test
yarn docs-test
)
travisFoldEnd "test.docs"