Skip to content

Commit

Permalink
Save caches at the end of the CI process
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietro Caselani committed Apr 5, 2020
1 parent 93a51c1 commit 1f73fc4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ jobs:
- run:
name: Setup build dependencies
command: bash setup.sh
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- save_cache:
key: 1-pods-{{ checksum "Podfile.lock" }}
paths:
- Pods
- save_cache:
key: 1-carthage-{{ checksum "Cartfile.resolved" }}
paths:
- Carthage/Build/iOS
- run:
name: Build and run tests
command: bundle exec fastlane lint
Expand All @@ -48,6 +36,18 @@ jobs:
- store_artifacts:
path: ~/Library/Logs/scan
destination: scan-logs
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- save_cache:
key: 1-pods-{{ checksum "Podfile.lock" }}
paths:
- Pods
- save_cache:
key: 1-carthage-{{ checksum "Cartfile.resolved" }}
paths:
- Carthage/Build/iOS
beta-release:
macos:
xcode: '11.2.1'
Expand All @@ -64,6 +64,9 @@ jobs:
- run:
name: Setup build dependencies
command: bash setup.sh
- run:
name: Release to Test Flight
command: bundle exec fastlane beta
- save_cache:
key: 1-gems-{{ checksum "Gemfile.lock" }}
paths:
Expand All @@ -76,9 +79,6 @@ jobs:
key: 1-carthage-{{ checksum "Cartfile.resolved" }}
paths:
- Carthage/Build/iOS
- run:
name: Release to Test Flight
command: bundle exec fastlane beta

workflows:
version: 2
Expand Down

0 comments on commit 1f73fc4

Please sign in to comment.