Skip to content

Commit

Permalink
Disable cache for carthage bootsrap in circleci job configs
Browse files Browse the repository at this point in the history
It seems like the circleci is using cached dependencies that are compiled
with older version of swift. Hopefully disabling the cache builds and
forcing cartahge to rebuild dependencies with new swift version will
solve the problem.
  • Loading branch information
lexorus committed Oct 15, 2018
1 parent 2f92bca commit 3bb8768
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
command: carthage checkout
- run:
name: Test Carthage Build before installing SwiftLint
command: carthage build --no-skip-current --cache-builds --no-use-binaries --verbose
command: carthage build --no-skip-current --no-use-binaries --verbose
- save_cache:
key: v1-carthage-no-swiftlint-deps-{{ checksum "Cartfile.resolved" }}
paths:
Expand Down
8 changes: 4 additions & 4 deletions scripts/bootstrap-if-needed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ RED='\033[1;31m'
GREEN='\033[1;32m'
NC='\033[0m' # No Color

if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
# if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
printf "${RED}Dependencies out of date with cache.${NC} Bootstrapping...\n"
scripts/bootstrap.sh
else
printf "${GREEN}Cache up-to-date.${NC} Skipping bootstrap...\n"
fi
# else
# printf "${GREEN}Cache up-to-date.${NC} Skipping bootstrap...\n"
# fi

0 comments on commit 3bb8768

Please sign in to comment.