Carthage is currently not working with Xcode 12. As a workaround a wrapper script has been proposed (see https://gist.github.com/skymobilebuilds/61f4a95bd62a3db36b52719aeab7e0d5). Until the issue is fixed and Carthage can built again with Xcode 12, the wrapper must be used instead of the direct `carthage` command.
53 lines
2.2 KiB
YAML
53 lines
2.2 KiB
YAML
language: objective-c
|
|
osx_image: xcode12
|
|
addons:
|
|
homebrew:
|
|
packages:
|
|
- go
|
|
- gnupg2
|
|
- pass
|
|
update: true
|
|
before_install:
|
|
- echo -e "machine github.com\n login $GITHUB_ACCESS_TOKEN" >> ~/.netrc
|
|
- touch .ci-env
|
|
install:
|
|
- gem install bundler
|
|
- bundle install
|
|
before_script:
|
|
- pod install
|
|
- git diff --quiet "$TRAVIS_COMMIT_RANGE" -- ; GIT_DIFF_EXIT_CODE=$?
|
|
- |
|
|
if [ "$GIT_DIFF_EXIT_CODE" -gt 1 ] ; then
|
|
git remote set-branches --add origin master
|
|
git fetch
|
|
TRAVIS_COMMIT_RANGE=origin/master...
|
|
fi
|
|
- echo $TRAVIS_COMMIT_RANGE
|
|
- |
|
|
if [ ! $(git diff --name-only "$TRAVIS_COMMIT_RANGE" | 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 80 ./wcarthage bootstrap --platform iOS
|
|
fi
|
|
- |
|
|
if [ ! $(git diff --name-only "$TRAVIS_COMMIT_RANGE" | grep -E "gopenpgp_build.sh") ] && [ -d "go/dist/Crypto.framework" ]; then
|
|
echo "Use cached go dependencies."
|
|
ls -ld go/dist/*framework
|
|
else
|
|
echo "Build go dependencies."
|
|
./gopenpgp_build.sh
|
|
fi
|
|
script:
|
|
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_EVENT_TYPE" = "push" ]; then bundle exec fastlane test && bundle exec fastlane "$CHANNEL"; else bundle exec fastlane test; fi
|
|
cache:
|
|
directories:
|
|
- Carthage
|
|
- go/dist
|
|
env:
|
|
jobs:
|
|
- CHANNEL=beta
|
|
- CHANNEL=release
|
|
global:
|
|
- secure: NsbIgKZAO1Rhr/QUFsvs5LjOGf4vFIWqCJNr+zhw9DKnOd+G8m1z9wsfNyUhg+v1eUONVMxI/FTeAobnn20kxetw1dMQn4/rL4+IB4UsmODuwcFF7JCUAzEB2Wv82O91nVwT48zEmNyOG2VkgfqOgHeASStQyDPFzJuyXFy+RzoBNKK3X7Uxk19UQI80UmXvW9bmQuY8O37g/qwFj4mnluNvPIvGHry0LPMlbh6fRPsHwXlDmD2FSLoW3GI3PLN1pWsIXLURUr3bioLBJ3E0tzZsFA4AM0xs9Y7Td9f87zo4pRTAH5p2EieSq5IfNS2RDQh5aftrLFBZPUui/86yc9hoceLuOVQKkByBavMBVzfIAiAoJZdBX9cTNDh+zzFs+WZKfP4jYnN1xrFPBmHOG5kVRiA++UbepferDjr80A5aXU3FLjOeuKKrkLvAphGRMwsbx9omYHjAa2eaf2oaLeKLENkl/C/6CeG4D1F/PLsdsjilfHEQKroDRWgxU2Se+bKYucmpBXa8fjWHUyr4pfcgc6qB/R62TxYBI94QSbWAEwE6eEzUlmBoids1l5KTWqnMqXYHlxNXNao2RxV2aqwq5OuWqg1hYBxXVBUKGvzXYONnsxfgcc7NLuTPfeR/h1v7CYcs6VG+z2rYJNY5pBTHrYzeNG0RbDNq3ofMl+M=
|