From b141a227fb5f0c26d1fd94e6389b6d0665be4a63 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Wed, 25 Jan 2017 22:27:05 +0000 Subject: [PATCH] ci(aio): run docs-tests in travis (#14097) --- .travis.yml | 1 + scripts/ci-lite/test.sh | 1 + scripts/ci-lite/test_docs.sh | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100755 scripts/ci-lite/test_docs.sh diff --git a/.travis.yml b/.travis.yml index 067abdeb7cb7ec..7670da07e7f8a0 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 deaa8b03f646cf..42b9bc9650013d 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 00000000000000..2382d2560e5819 --- /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'