forked from firebase/FirebaseUI-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathartifactory.sh
More file actions
executable file
·23 lines (17 loc) · 846 Bytes
/
artifactory.sh
File metadata and controls
executable file
·23 lines (17 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -e
VERSION_BRANCH_RE="version-[0-9\.]+-dev"
if [[ ($CI == "true") && !("${TRAVIS_BRANCH}" =~ $VERSION_BRANCH_RE) ]]; then
echo "Not triggering artifactory for branch: ${TRAVIS_BRANCH}"
exit 0
fi
if [[ ($CI == "true") && ($TRAVIS_EVENT_TYPE != "push") ]]; then
echo "Artifactory only triggered on 'push' builds."
exit 0
fi
./gradlew :library:prepareArtifacts
./gradlew :common:assembleRelease :common:prepareArtifacts :common:artifactoryPublish
./gradlew :auth:assembleRelease :auth:prepareArtifacts :auth:artifactoryPublish
./gradlew :database:assembleRelease :database:prepareArtifacts :database:artifactoryPublish
./gradlew :firestore:assembleRelease :firestore:prepareArtifacts :firestore:artifactoryPublish
./gradlew :storage:assembleRelease :storage:prepareArtifacts :storage:artifactoryPublish