From 604de8e947ee8e58094bb2d7cb4cc7ac16e97876 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Fri, 11 May 2018 18:24:00 -0700 Subject: Add static library pod linting (#1259) * add if_cron script --- .travis.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 4376600..82deaa3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,8 @@ jobs: script: - ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM $METHOD - # pod lib lint to check build and warnings + # TODO - add a script to make the lint checks more DRY. + # pod lib lint to check build and warnings for dynamic framework build (use_frameworks!) - stage: test env: - PROJECT=Firebase PLATFORM=iOS METHOD=pod-lib-lint @@ -67,8 +68,34 @@ jobs: before_install: - ./scripts/if_changed.sh ./scripts/install_prereqs.sh script: + # Eliminate the one warning from BoringSSL when CocoaPods 1.6.0 is available. + # The travis_wait is necessary because the command takes more than 10 minutes. - travis_wait ./scripts/if_changed.sh bundle exec pod lib lint FirebaseFirestore.podspec --allow-warnings --no-subspecs + # pod lib lint to check build and warnings for static library build - only on cron jobs + - stage: test + env: + - PROJECT=Firebase PLATFORM=iOS METHOD=pod-lib-lint + before_install: + - ./scripts/if_cron.sh ./scripts/install_prereqs.sh + script: + - ./scripts/if_cron.sh bundle exec pod lib lint FirebaseCore.podspec --use-libraries + - ./scripts/if_cron.sh bundle exec pod lib lint FirebaseAuth.podspec --use-libraries + - ./scripts/if_cron.sh bundle exec pod lib lint FirebaseDatabase.podspec --use-libraries + - ./scripts/if_cron.sh bundle exec pod lib lint FirebaseMessaging.podspec --use-libraries + - ./scripts/if_cron.sh bundle exec pod lib lint FirebaseStorage.podspec --use-libraries + - ./scripts/if_cron.sh bundle exec pod lib lint FirebaseFunctions.podspec --use-libraries + + - stage: test + env: + - PROJECT=Firestore PLATFORM=iOS METHOD=pod-lib-lint + before_install: + - ./scripts/if_cron.sh ./scripts/install_prereqs.sh + script: + # TBD - non-portable path warnings + # The travis_wait is necessary because the command takes more than 10 minutes. + - travis_wait ./scripts/if_cron.sh bundle exec pod lib lint FirebaseFirestore.podspec --use-libraries --allow-warnings --no-subspecs + # Alternative platforms - stage: test -- cgit v1.2.3