forked from patternfly/patternfly-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up travis to run against all branches (if they are configured).
- Loading branch information
Showing
4 changed files
with
15 additions
and
19 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
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
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 |
---|---|---|
|
@@ -2,10 +2,14 @@ | |
|
||
set -o errexit -o nounset | ||
|
||
if [ -z "$TRAVIS_TAG" -a "$TRAVIS_BRANCH" != "master" ] | ||
if [ "$TRAVIS_REPO_SLUG" = "patternfly/patternfly" ] | ||
then | ||
echo "This commit was made against $TRAVIS_BRANCH and not the master or tag! Do not deploy!" | ||
exit 0 | ||
echo "This build is running against patternfly/patternfly." | ||
if [ -z "$TRAVIS_TAG" -a "$TRAVIS_BRANCH" != "master" ] | ||
then | ||
echo "This commit was made against $TRAVIS_BRANCH and not the master or tag! Do not deploy!" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
# User info | ||
|
@@ -14,13 +18,13 @@ git config user.email "[email protected]" | |
git config --global push.default simple | ||
|
||
# Add upstream authentication token | ||
git remote add upstream https://$AUTH_TOKEN@github.com/patternfly/patternfly.git | ||
git remote add upstream https://$AUTH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git | ||
|
||
# Commit generated files | ||
git add dist --force | ||
git commit -m "Added files generated by Travis build" | ||
|
||
# Push to releases branch | ||
git push upstream master:releases --force -v | ||
# Push to dist branch | ||
git push upstream $TRAVIS_BRANCH:$TRAVIS_BRANCH-dist --force -v | ||
|
||
exit $? |
This file was deleted.
Oops, something went wrong.