Skip to content

Commit

Permalink
ci(aio): run docs-tests in travis (angular#14097)
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin authored and IgorMinar committed Jan 27, 2017
1 parent b776355 commit b141a22
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/ci-lite/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
19 changes: 19 additions & 0 deletions scripts/ci-lite/test_docs.sh
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit b141a22

Please sign in to comment.