CI: check the existance of go/dist/framework

This commit is contained in:
Yishi Lin 2019-06-15 17:26:31 +08:00
parent 0ec5b5cd80
commit e5b31f3d92

View file

@ -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