ci(aio): run docs-tests in travis (#14097)

This commit is contained in:
Peter Bacon Darwin 2017-01-25 22:27:05 +00:00 committed by Igor Minar
parent b7763559cd
commit b141a227fb
3 changed files with 21 additions and 0 deletions

View File

@ -34,6 +34,7 @@ env:
- CI_MODE=browserstack_required
- CI_MODE=saucelabs_optional
- CI_MODE=browserstack_optional
- CI_MODE=docs_test
matrix:
fast_finish: true

View File

@ -13,6 +13,7 @@ cd ../..
./scripts/ci-lite/test_e2e.sh
./scripts/ci-lite/test_saucelabs.sh
./scripts/ci-lite/test_browserstack.sh
./scripts/ci-lite/test_docs.sh
echo 'travis_fold:end:test-browser'

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

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -ex -o pipefail
if [[ ${TRAVIS} && ${CI_MODE} != "docs_test" ]]; then
exit 0;
fi
echo 'travis_fold:start:test_docs'
# Setup environment
cd `dirname $0`
source ./env.sh
cd ../..
$(npm bin)/gulp docs-test
echo 'travis_fold:end:test_docs'