From e5b31f3d9237da2562aed96ea8d9876780960c81 Mon Sep 17 00:00:00 2001 From: Yishi Lin Date: Sat, 15 Jun 2019 17:26:31 +0800 Subject: [PATCH] CI: check the existance of go/dist/framework --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1a06442..cdd02b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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