Pārlūkot izejas kodu

Delete unused travis code (#5696)

Paul Beusterien 5 gadi atpakaļ
vecāks
revīzija
4f0196bb2b
2 mainītis faili ar 0 papildinājumiem un 47 dzēšanām
  1. 0 5
      .travis.yml
  2. 0 42
      scripts/install_prereqs.sh

+ 0 - 5
.travis.yml

@@ -62,9 +62,6 @@ jobs:
       osx_image: xcode10.3
       env:
         - PROJECT=InstanceID METHOD=pod-lib-lint
-        - FIR_IID_INTEGRATION_TESTS_REQUIRED=$(if [[ "$TRAVIS_PULL_REQUEST" == "false" || "$TRAVIS_PULL_REQUEST_SLUG" == "$TRAVIS_REPO_SLUG" ]]; then echo "1"; else echo "0"; fi)
-      before_install:
-        - ./scripts/if_changed.sh ./scripts/install_prereqs.sh
       script:
         - travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseInstanceID.podspec --platforms=ios
 
@@ -72,8 +69,6 @@ jobs:
       osx_image: xcode10.3
       env:
         - PROJECT=Database PLATFORM=all METHOD=xcodebuild
-      before_install:
-        - ./scripts/if_changed.sh ./scripts/install_prereqs.sh
       script:
         - travis_retry ./scripts/if_changed.sh ./scripts/pod_lib_lint.rb FirebaseDatabase.podspec --skip-tests --platforms=ios
 

+ 0 - 42
scripts/install_prereqs.sh

@@ -23,32 +23,6 @@
 
 set -euo pipefail
 
-# Set up secrets for integration tests and metrics collection. This does not work for pull
-# requests from forks. See
-# https://docs.travis-ci.com/user/pull-requests#pull-requests-and-security-restrictions
-function install_secrets() {
-  if [[ -n "${encrypted_de2056405dcb_key:-}" && $secrets_installed != true ]]; then
-    secrets_installed=true
-    openssl aes-256-cbc -K $encrypted_de2056405dcb_key -iv $encrypted_de2056405dcb_iv \
-    -in scripts/travis-encrypted/Secrets.tar.enc \
-    -out scripts/travis-encrypted/Secrets.tar -d
-
-    tar xvf scripts/travis-encrypted/Secrets.tar
-
-    cp Secrets/Storage/App/GoogleService-Info.plist FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist
-
-    # Firebase Installations
-    fis_resources_dir=FirebaseInstallations/Source/Tests/Resources/
-    mkdir -p "$fis_resources_dir"
-    cp Secrets/Installations/GoogleService-Info.plist "$fis_resources_dir"
-
-    # FirebaseInstanceID
-    iid_resources_dir=Example/InstanceID/Resources/
-    mkdir -p "$iid_resources_dir"
-    cp Secrets/Installations/GoogleService-Info.plist "$iid_resources_dir"
-  fi
-}
-
 # apt_install program package
 #
 # Installs the given package if the given command is missing
@@ -65,8 +39,6 @@ function install_xcpretty() {
   fi
 }
 
-secrets_installed=false
-
 # Default values, if not supplied on the command line or environment
 platform="iOS"
 method="xcodebuild"
@@ -95,11 +67,6 @@ if [[ "$method" != "cmake" ]]; then
   scripts/setup_bundler.sh
 fi
 
-if [[ ! -z "${QUICKSTART:-}" ]]; then
-  install_secrets
-  scripts/setup_quickstart.sh "$QUICKSTART"
-fi
-
 case "$project-$platform-$method" in
 
   FirebasePod-iOS-*)
@@ -127,15 +94,6 @@ case "$project-$platform-$method" in
   Storage-*)
     ;;
 
-  Installations-*)
-    install_secrets
-    ;;
-
-  # There is purposefully not a dash to include InstanceIDCron.
-  InstanceID*)
-    install_secrets
-    ;;
-
   InAppMessaging-*-xcodebuild)
     install_xcpretty
     bundle exec pod install --project-directory=FirebaseInAppMessaging/Tests/Integration/DefaultUITestApp --no-repo-update