travis script

This commit is contained in:
Arnaud Dorgans
2019-02-17 00:45:35 +01:00
parent 1969a1f393
commit b1b1e24620
2 changed files with 8 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
language: swift
osx_image: xcode10.1
install:
- sh scripts/pod_lib_lint.sh
- sh scripts/pod_lib_lint.sh travis
before_install:
- gem install cocoapods
- pod repo update && pod update

View File

@@ -1,9 +1,13 @@
#!/bin/bash
for pod in $(find . -name "*.podspec" -type f -exec basename {} ';' );do
push=0
travis=0
if [[ $1 == 'push' ]]; then
push=1
fi
if [[ $1 == 'travis' ]]; then
travis=1
fi
if [[ $pod == 'RxFirebase.podspec' ]]; then
continue
fi
@@ -12,6 +16,9 @@ for pod in $(find . -name "*.podspec" -type f -exec basename {} ';' );do
else
command="pod trunk push $pod --allow-warnings --verbose"
fi
if [[ $travis == 1 ]]; then
command="travis_wait 30 $command"
fi
echo $command
$command ; result=$?
if [[ $result != 0 ]]; then