Skip to content

Commit

Permalink
don't automatically release downstream projects
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Mar 20, 2017
1 parent 0c821d7 commit fb874db
Showing 1 changed file with 5 additions and 69 deletions.
74 changes: 5 additions & 69 deletions travis-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
cd gorm-hibernate5
echo "$(date)" > .snapshot
git add .snapshot
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
if [[ $TRAVIS_TAG =~ [M\d|RC\d] ]]; then
echo "gormVersion=${TRAVIS_TAG:1}" > gradle.properties
else
echo "gormVersion=${TRAVIS_TAG:1}.RELEASE" > gradle.properties
fi

git add gradle.properties
git commit -m "Release GORM for Hibernate 5 $TRAVIS_TAG"
git tag $TRAVIS_TAG
git push --tags
else
git commit -m "New Core Snapshot: $(date)"
fi
git commit -m "New Core Snapshot: $(date)"
git push
cd ..

Expand All @@ -62,20 +49,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
cd gorm-hibernate4
echo "$(date)" > .snapshot
git add .snapshot
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
if [[ $TRAVIS_TAG =~ [M\d|RC\d] ]]; then
echo "gormVersion=${TRAVIS_TAG:1}" > gradle.properties
else
echo "gormVersion=${TRAVIS_TAG:1}.RELEASE" > gradle.properties
fi

git add gradle.properties
git commit -m "Release GORM for Hibernate 4 $TRAVIS_TAG"
git tag $TRAVIS_TAG
git push --tags
else
git commit -m "New Core Snapshot: $(date)"
fi
git commit -m "New Core Snapshot: $(date)"
git push
cd ..

Expand All @@ -85,19 +59,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
cd gorm-rest-client
echo "$(date)" > .snapshot
git add .snapshot

if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
if [[ $TRAVIS_TAG =~ [M\d|RC\d] ]]; then
echo "gormVersion=${TRAVIS_TAG:1}" > gradle.properties
else
echo "gormVersion=${TRAVIS_TAG:1}.RELEASE" > gradle.properties
fi

git add gradle.properties
git commit -m "New GORM Release $TRAVIS_TAG"
else
git commit -m "New Core Snapshot: $(date)"
fi
git commit -m "New Core Snapshot: $(date)"
git push
cd ..

Expand All @@ -106,20 +68,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
cd gorm-neo4j
echo "$(date)" > .snapshot
git add .snapshot
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
if [[ $TRAVIS_TAG =~ [M\d|RC\d] ]]; then
echo "gormVersion=${TRAVIS_TAG:1}" > gradle.properties
else
echo "gormVersion=${TRAVIS_TAG:1}.RELEASE" > gradle.properties
fi

git add gradle.properties
git commit -m "New GORM Release $TRAVIS_TAG"
# git tag $TRAVIS_TAG
# git push --tags
else
git commit -m "New Core Snapshot: $(date)"
fi
git commit -m "New Core Snapshot: $(date)"
git push
cd ..

Expand All @@ -128,20 +77,7 @@ if [[ $TRAVIS_REPO_SLUG == "grails/grails-data-mapping" && $TRAVIS_PULL_REQUEST
cd gorm-mongodb
echo "$(date)" > .snapshot
git add .snapshot
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
if [[ $TRAVIS_TAG =~ [M\d|RC\d] ]]; then
echo "gormVersion=${TRAVIS_TAG:1}" > gradle.properties
else
echo "gormVersion=${TRAVIS_TAG:1}.RELEASE" > gradle.properties
fi

git add gradle.properties
git commit -m "New GORM Release $TRAVIS_TAG"
# git tag $TRAVIS_TAG
# git push --tags
else
git commit -m "New Core Snapshot: $(date)"
fi
git commit -m "New Core Snapshot: $(date)"

git push
cd ..
Expand Down

0 comments on commit fb874db

Please sign in to comment.