Skip to content

Commit

Permalink
Trigger docs update only for changes in master
Browse files Browse the repository at this point in the history
  • Loading branch information
alrra committed May 9, 2017
1 parent 6e8da1c commit a8c899c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

* text=auto


# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Exclude the following files from GitHub's language statistics
Expand Down
14 changes: 8 additions & 6 deletions .travis/check-links.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#!/bin/bash

cd "$(dirname "${BASH_SOURCE[0]}")/.."
cd "$(dirname "${BASH_SOURCE[0]}")/.." \
|| exit 1

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

find . -name "*.md" \
-not -path "./node_modules/*" \
-not -path "./dist/*" \
-not -path "./coverage/*" \
| xargs awesome_bot \
--allow-dupe \
--allow-redirect \
--set-timeout 150 \
--white-list "example1.com,example2.com,example3.com"
-exec awesome_bot \
--allow-dupe \
--allow-redirect \
--set-timeout 150 \
--white-list "example1.com,example2.com,example3.com" \
{} +
13 changes: 12 additions & 1 deletion .travis/trigger-site-docs-build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
#!/bin/bash

cd "$(dirname "${BASH_SOURCE[0]}")/.."
cd "$(dirname "${BASH_SOURCE[0]}")/.." \
|| exit 1

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Only execute the following if the commit:
#
# * doesn't come from a pull request
# * is made to the `master` branch

if [ "$TRAVIS_PULL_REQUEST" = "true" ] ||
[ "$TRAVIS_BRANCH" != "master" ]; then
exit 0
fi

# If something changed in `docs/` in the last 3 commits, trigger
# an update of the documentation in the repository of the website.

Expand Down

0 comments on commit a8c899c

Please sign in to comment.