Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

fix(travis): BUILD_LEADER is not available in build.sh #1393

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fi
echo '-------------------------'
echo '-- DOCS: Generate Docs --'
echo '-------------------------'
if [[ $BUILD_LEADER == "YES" ]]; then
if [[ ${TRAVIS_JOB_NUMBER:(-2)} == ".1" ]]; then
echo $NGDART_SCRIPT_DIR/generate-documentation.sh;
$NGDART_SCRIPT_DIR/generate-documentation.sh;
fi
2 changes: 1 addition & 1 deletion scripts/travis/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo Current branch is: $TRAVIS_BRANCH
echo Test result is: $TRAVIS_TEST_RESULT

if [ "$TRAVIS_REPO_SLUG" = "angular/angular.dart" ]; then
if [ $TRAVIS_TEST_RESULT -eq 0 ] && [ "$TRAVIS_BRANCH" = "master" ]; then
if [ $TRAVIS_TEST_RESULT -eq 0 ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
echo "Gettting current docs from docs.angulardart.org repo on Github"
rm -Rf docs.angulardart.org
git clone https://github.com/angular/docs.angulardart.org.git
Expand Down