Skip to content

Commit b141a22

Browse files
petebacondarwinIgorMinar
authored andcommitted
ci(aio): run docs-tests in travis (angular#14097)
1 parent b776355 commit b141a22

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ env:
3434
- CI_MODE=browserstack_required
3535
- CI_MODE=saucelabs_optional
3636
- CI_MODE=browserstack_optional
37+
- CI_MODE=docs_test
3738

3839
matrix:
3940
fast_finish: true

scripts/ci-lite/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ cd ../..
1313
./scripts/ci-lite/test_e2e.sh
1414
./scripts/ci-lite/test_saucelabs.sh
1515
./scripts/ci-lite/test_browserstack.sh
16+
./scripts/ci-lite/test_docs.sh
1617

1718
echo 'travis_fold:end:test-browser'
1819

scripts/ci-lite/test_docs.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex -o pipefail
4+
5+
if [[ ${TRAVIS} && ${CI_MODE} != "docs_test" ]]; then
6+
exit 0;
7+
fi
8+
9+
10+
echo 'travis_fold:start:test_docs'
11+
12+
# Setup environment
13+
cd `dirname $0`
14+
source ./env.sh
15+
cd ../..
16+
17+
$(npm bin)/gulp docs-test
18+
19+
echo 'travis_fold:end:test_docs'

0 commit comments

Comments
 (0)