Base Configuration
This commit is contained in:
19
ExternalLibs/ParseLiveQuery-Android/scripts/publish_snapshot.sh
Executable file
19
ExternalLibs/ParseLiveQuery-Android/scripts/publish_snapshot.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Publishes SNAPSHOTs
|
||||
|
||||
REPO_SLUG=parse-community/ParseLiveQuery-Android
|
||||
BRANCH=master
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$TRAVIS_REPO_SLUG" != "$REPO_SLUG" ]; then
|
||||
echo "Skipping publishing SNAPSHOT: wrong repository. Expected '$REPO_SLUG' but was '$TRAVIS_REPO_SLUG'"
|
||||
elif [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
||||
echo "Skipping publishing SNAPSHOT: was PR"
|
||||
elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
|
||||
echo "Skipping publishing SNAPSHOT: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'"
|
||||
else
|
||||
echo "Publishing SNAPSHOT..."
|
||||
./gradlew uploadArchives
|
||||
echo "SNAPSHOT published!"
|
||||
fi
|
Reference in New Issue
Block a user