Moya-ModelMapper/.circleci/config.yml

33 lines
836 B
YAML

version: 2
jobs:
build:
working_directory: ~/sunshinejr/moya-modelmapper
parallelism: 1
shell: /bin/bash --login
environment:
LANG: en_US.UTF-8
macos:
xcode: 11.0.0
steps:
- checkout
- restore_cache:
keys:
- v1-build-{{ .Branch }}-
- save_cache:
key: v1-build-{{ .Branch }}-{{ epoch }}
paths:
- .build
- run:
name: swift build
command: swift build
- run:
name: swift test
command: TEST_MM=1 swift test
- store_test_results:
path: test_output/report.xml
- store_artifacts:
path: /tmp/test-results
destination: scan-test-results
- store_artifacts:
path: ~/Library/Logs/scan
destination: scan-logs