diff --git a/.travis.yml b/.travis.yml index 067abdeb7c..7670da07e7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/scripts/ci-lite/test.sh b/scripts/ci-lite/test.sh index deaa8b03f6..42b9bc9650 100755 --- a/scripts/ci-lite/test.sh +++ b/scripts/ci-lite/test.sh @@ -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' diff --git a/scripts/ci-lite/test_docs.sh b/scripts/ci-lite/test_docs.sh new file mode 100755 index 0000000000..2382d2560e --- /dev/null +++ b/scripts/ci-lite/test_docs.sh @@ -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'