-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restores the checks to ignore PR's and things.
- Loading branch information
OPC CI
committed
Jul 9, 2018
1 parent
6ddd17f
commit 0748da1
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ SOURCE_BRANCH="master" | |
TARGET_BRANCH="gh-pages" | ||
|
||
# Pull requests and commits to other branches shouldn't try to deploy, just build to verify | ||
# if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then | ||
# echo "Skipping deploy; just doing a build." | ||
# npm run docs:build | ||
# exit 0 | ||
# fi | ||
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then | ||
echo "Skipping deploy; just doing a build." | ||
npm run docs:build | ||
exit 0 | ||
fi | ||
|
||
# Save some useful information | ||
REPO=`git config remote.origin.url` | ||
|
@@ -49,10 +49,10 @@ git config user.name "OPC CI" | |
git config user.email "[email protected]" | ||
|
||
# If there are no changes (e.g. this is a README update) then just bail. | ||
# if [ -z `git diff --exit-code` ]; then | ||
# echo "No changes to the spec on this push; exiting." | ||
# exit 0 | ||
# fi | ||
if [ -z `git diff --exit-code` ]; then | ||
echo "No changes to the spec on this push; exiting." | ||
exit 0 | ||
fi | ||
|
||
# Commit the "changes", i.e. the new version. | ||
# mv ./ ../../ | ||
|