aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2018-05-11 18:24:00 -0700
committerGravatar GitHub <noreply@github.com>2018-05-11 18:24:00 -0700
commit604de8e947ee8e58094bb2d7cb4cc7ac16e97876 (patch)
tree47112190c075e779714e6f500c0222a848d0482e /.travis.yml
parentaf4bf66cfe09f4db2fda870931af4bc1bdc3ef23 (diff)
Add static library pod linting (#1259)
* add if_cron script
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml29
1 files changed, 28 insertions, 1 deletions
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