CI: check the existance of go/dist/framework
This commit is contained in:
parent
0ec5b5cd80
commit
e5b31f3d92
1 changed files with 4 additions and 2 deletions
|
|
@ -10,15 +10,17 @@ install:
|
|||
- gem update fastlane
|
||||
before_script:
|
||||
- |
|
||||
if [ ! $(git diff --name-only master..."$TRAVIS_COMMIT" | grep "Carthage.lock") ] && [ -d "Carthage/Build" ]; then
|
||||
if [ ! $(git diff --name-only master..."$TRAVIS_COMMIT" | grep "Cartfile.resolved") ] && [ -d "Carthage/Build" ]; then
|
||||
echo "Use cached carthage dependencies."
|
||||
ls -ld Carthage/Build/iOS/*framework
|
||||
else
|
||||
echo "Bootstrap carthage dependencies."
|
||||
travis_wait 45 carthage bootstrap --platform iOS
|
||||
fi
|
||||
- |
|
||||
if [ ! $(git diff --name-only master..."$TRAVIS_COMMIT" | grep -E "gopenpgp_build.sh|gopenpgpwrapper.go") ] && [ -d "go/dist" ]; then
|
||||
if [ ! $(git diff --name-only master..."$TRAVIS_COMMIT" | grep -E "gopenpgp_build.sh|gopenpgpwrapper.go") ] && [ -d "go/dist/Gopenpgpwrapper.framework" ]; then
|
||||
echo "Use cached go dependencies."
|
||||
ls -ld go/dist/*framework
|
||||
else
|
||||
echo "Build go dependencies."
|
||||
./gopenpgp_build.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue