diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2018-05-08 10:59:19 -0700 |
---|---|---|
committer | Paul Beusterien <paulbeusterien@google.com> | 2018-05-08 10:59:19 -0700 |
commit | bb8c87a02897da363f23dbc1f5193551158cef41 (patch) | |
tree | aff4dd5ab0f4c6189577af31bbd023f33b9f818e /scripts | |
parent | dddd75037ddd0937f2526ae7b43b62f571b22f49 (diff) | |
parent | 56a529531b5ecd81a68c098ec8fbc5b8a6ec3fcf (diff) |
merge
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/push-pods.sh | 41 | ||||
-rwxr-xr-x | scripts/update-tags.sh | 61 |
2 files changed, 102 insertions, 0 deletions
diff --git a/scripts/push-pods.sh b/scripts/push-pods.sh new file mode 100755 index 0000000..2fb8eaa --- /dev/null +++ b/scripts/push-pods.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash + +# Copyright 2018 Google +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Push GitHub pods to cpdc-internal-spec. + +# When bootstrapping a repo, FirebaseCore must be pushed first, then +# FirebaseInstanceID, then FirebaseAnalytics, then the rest +# Most of the warnings are tvOS specific. The Firestore one needs +# investigation. + +pod cache clean FirebaseCore --all +pod cache clean FirebaseAuth --all +pod cache clean FirebaseDatabase --all +pod cache clean FirebaseFirestore --all +pod cache clean FirebaseFunctions --all +pod cache clean FirebaseMessaging --all +pod cache clean FirebaseStorage --all + +pod repo push cpdc-internal-spec FirebaseCore.podspec +pod repo push cpdc-internal-spec FirebaseAuth.podspec +pod repo push cpdc-internal-spec FirebaseDatabase.podspec +pod repo push cpdc-internal-spec FirebaseFirestore.podspec --allow-warnings +pod repo push cpdc-internal-spec FirebaseFunctions.podspec +pod repo push cpdc-internal-spec FirebaseMessaging.podspec +pod repo push cpdc-internal-spec FirebaseStorage.podspec + +# FirebaseFirestore warning (no plan to fix) +# https://github.com/firebase/firebase-ios-sdk/issues/1143 diff --git a/scripts/update-tags.sh b/scripts/update-tags.sh new file mode 100755 index 0000000..64cf1ce --- /dev/null +++ b/scripts/update-tags.sh @@ -0,0 +1,61 @@ +#!/usr/bin/env bash + +# Copyright 2018 Google +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Update the tags for the Firebase 5.0.0 release process + +# Before running, make sure everything is pushed. + +# This script should be a spec for a more robust Python or Swift script that +# does the following. +# 1. Verify all files are committed +# 2. Verify running on a release branch +# 3. Read the versions from the podspec (or incorporate into even more +# automated version management) + +# Delete any existing tags at origin + +git push --delete origin '5.0.0' +git push --delete origin 'Core-5.0.0' +git push --delete origin 'Auth-5.0.0' +git push --delete origin 'Database-5.0.0' +git push --delete origin 'Firestore-0.12.0' +git push --delete origin 'Functions-2.0.0' +git push --delete origin 'Messaging-3.0.0' +git push --delete origin 'Storage-3.0.0' + +# Delete local tags + +git tag --delete '5.0.0' +git tag --delete 'Core-5.0.0' +git tag --delete 'Auth-5.0.0' +git tag --delete 'Database-5.0.0' +git tag --delete 'Firestore-0.12.0' +git tag --delete 'Functions-2.0.0' +git tag --delete 'Messaging-3.0.0' +git tag --delete 'Storage-3.0.0' + +# Add and push the tags + +git tag '5.0.0' +git tag 'Core-5.0.0' +git tag 'Auth-5.0.0' +git tag 'Database-5.0.0' +git tag 'Firestore-0.12.0' +git tag 'Functions-2.0.0' +git tag 'Messaging-3.0.0' +git tag 'Storage-3.0.0' + +git push origin --tags |