Skip to content

Instantly share code, notes, and snippets.

@ITechRoof
Created March 28, 2018 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ITechRoof/3bfec92eba06f5dec01f6b565e663190 to your computer and use it in GitHub Desktop.
Save ITechRoof/3bfec92eba06f5dec01f6b565e663190 to your computer and use it in GitHub Desktop.
jobs:
build:
macos:
xcode: "9.0"
dependencies:
override:
- bundle install
steps:
- checkout
- run:
name: Fetch CocoaPods Specs
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
- run:
name: Install CocoaPods
command: pod install --verbose
- run:
name: Build and run tests
command: fastlane scan
environment:
SCAN_DEVICE: iPhone 8
SCAN_SCHEME: WebTests
- run:
command: mv fastlane/test_output/report.junit fastlane/test_output/report.xml
when: always
- store_test_results:
path: fastlane/test_output
- store_artifacts:
path: /tmp/test-results
destination: scan-test-results
- store_artifacts:
path: ~/Library/Logs/scan
destination: scan-logs
workflows:
version: 2
build-and-test:
macos:
xcode: "9.0"
jobs:
- build
- test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment