Skip to content

Commit

Permalink
fix circle ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
jjochen committed Feb 1, 2019
1 parent 14d9ee8 commit fe29bcc
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,90 +33,90 @@ commands:
description: Update bundler to newest version
steps:
- run:
name: Update bunder
command: gem install bundler
name: Update bunder
command: gem install bundler

restore-gem-cache:
description: Restore gems from cache
steps:
- restore_cache:
keys:
- v1-gem-cache-{{ checksum "Gemfile.lock" }}
- v1-gem-cache
keys:
- v1-gem-cache-{{ checksum "Gemfile.lock" }}
- v1-gem-cache

bundle-install:
description: Install gems
steps:
- run:
name: Bundle install
command: bundle install --path vendor/bundle
name: Bundle install
command: bundle install --path vendor/bundle

save-gem-cache:
description: Save gems to cache
steps:
- save_cache:
key: v1-gem-cache-{{ checksum "Gemfile.lock" }}
paths:
key: v1-gem-cache-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

start-simulator:
description: Start simulator
steps:
- run:
name: Start simulator
command: xcrun instruments -w "$SIMULATOR" || true
name: Start simulator
command: xcrun instruments -w "$SIMULATOR" || true

fetch-cocoapods-specs:
description: Fetch CocoaPods repository from S3
steps:
- run:
name: Fetch CocoaPods Specs
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
name: Fetch CocoaPods Specs
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf

restore-pods-cache:
description: Restore pods directory from cache
steps:
- restore_cache:
keys:
- v1-pods-cache-{{ checksum "Example/Podfile.lock" }}
- v1-pods-cache
keys:
- v1-pods-cache-{{ checksum "Example/Podfile.lock" }}
- v1-pods-cache

install-cocoapods:
description: Install cocoapods of example project
steps:
- run:
name: Install CocoaPods
command: bundle exec pod install --project-directory=Example
name: Install CocoaPods
command: bundle exec pod install --project-directory=Example

save-pods-cache:
description: Save pods directory to cache
steps:
- save_cache:
key: v1-pods-cache-{{ checksum "Example/Podfile.lock" }}
paths:
- Example/Pods
key: v1-pods-cache-{{ checksum "Example/Podfile.lock" }}
paths:
- Example/Pods

run-tests:
description: Run tests on sepcific device
steps:
- run:
name: Build and run tests
command: bundle exec rake test_destination
name: Build and run tests
command: bundle exec rake test_destination

update-codecov:
description: Upload coverage information to Codecov
steps:
- run:
name: Update Codecov
command: bash <(curl -s https://codecov.io/bash)
name: Update Codecov
command: bash <(curl -s https://codecov.io/bash)

store-reports:
description: Store reports
steps:
- store_artifacts:
path: build/reports/junit.xml
path: build/reports/junit.xml
- store_test_results:
path: build/reports/junit.xml
path: build/reports/junit.xml

setup-gems:
description: Update bundler and install gems
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:


push-podspec:
executor: xcode10
executor: ios12-iphone-xs-max
steps:
- checkout
- setup-gems
Expand Down

0 comments on commit fe29bcc

Please sign in to comment.