mirror of
https://github.com/caoer/RxFirebase.git
synced 2026-04-28 20:55:39 +08:00
travis script
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user