|
| 1 | +version: 2 |
| 2 | +jobs: |
| 3 | + "RxStarscream Tests": |
| 4 | + working_directory: ~/RxSwiftCommunity/RxStarscream |
| 5 | + parallelism: 1 |
| 6 | + shell: /bin/bash --login |
| 7 | + environment: |
| 8 | + XCODE_TEST_REPORTS: /tmp/xcode-test-results |
| 9 | + LANG: en_US.UTF-8 |
| 10 | + macos: |
| 11 | + xcode: '10.0.0' |
| 12 | + steps: |
| 13 | + - checkout |
| 14 | + - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS $XCODE_TEST_REPORTS |
| 15 | + - restore_cache: |
| 16 | + keys: |
| 17 | + - v1-dep-{{ .Branch }}- |
| 18 | + - v1-dep-master- |
| 19 | + - v1-dep- |
| 20 | + - run: |
| 21 | + name: Bootstrap Carthage |
| 22 | + command: scripts/bootstrap-if-needed.sh |
| 23 | + - save_cache: |
| 24 | + key: v1-dep-{{ .Branch }}-{{ epoch }} |
| 25 | + paths: |
| 26 | + - Carthage |
| 27 | + - run: |
| 28 | + name: iOS, Swift 4 |
| 29 | + command: set -o pipefail && xcodebuild test SWIFT_VERSION=4.0 -scheme RxStarscream -project RxStarscream.xcodeproj -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty -c -r html --output $XCODE_TEST_REPORTS/iOS_swift4.html |
| 30 | + - run: |
| 31 | + name: iOS, Swift 4.2 |
| 32 | + command: set -o pipefail && xcodebuild test SWIFT_VERSION=4.2 -scheme RxStarscream -project RxStarscream.xcodeproj -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty -c -r html --output $XCODE_TEST_REPORTS/iOS_swift4_2.html |
| 33 | + - run: |
| 34 | + name: macOS, Swift 4 |
| 35 | + command: set -o pipefail && xcodebuild test SWIFT_VERSION=4.0 -scheme RxStarscream-macOS -project RxStarscream.xcodeproj -sdk macosx | xcpretty -c -r html --output $XCODE_TEST_REPORTS/macOS_swift4.html |
| 36 | + - run: |
| 37 | + name: macOS, Swift 4.2 |
| 38 | + command: set -o pipefail && xcodebuild test SWIFT_VERSION=4.2 -scheme RxStarscream-macOS -project RxStarscream.xcodeproj -sdk macosx | xcpretty -c -r html --output $XCODE_TEST_REPORTS/macOS_swift4_2.html |
| 39 | + - store_artifacts: |
| 40 | + path: $XCODE_TEST_REPORTS |
| 41 | + "RxStarscream Release": |
| 42 | + working_directory: ~/RxSwiftCommunity/RxStarscream |
| 43 | + parallelism: 1 |
| 44 | + shell: /bin/bash --login |
| 45 | + environment: |
| 46 | + LANG: en_US.UTF-8 |
| 47 | + macos: |
| 48 | + xcode: '10.0.0' |
| 49 | + steps: |
| 50 | + - checkout |
| 51 | + - run: |
| 52 | + name: Setup CocoaPods |
| 53 | + command: pod setup |
| 54 | + - run: |
| 55 | + name: Override Circle CI Config |
| 56 | + command: rm ~/.cocoapods/config.yaml # This hack is needed since CircleCI forces --verbose |
| 57 | + - run: |
| 58 | + name: Push Podspec to Trunk |
| 59 | + command: pod trunk push --skip-tests --allow-warnings |
| 60 | +workflows: |
| 61 | + version: 2 |
| 62 | + build: |
| 63 | + jobs: |
| 64 | + - "RxStarscream Tests": |
| 65 | + filters: |
| 66 | + tags: |
| 67 | + ignore: /[0-9]+(\.[0-9]+)*/ |
| 68 | + release: |
| 69 | + jobs: |
| 70 | + - "RxStarscream Release": |
| 71 | + filters: |
| 72 | + branches: |
| 73 | + ignore: /.*/ |
| 74 | + tags: |
| 75 | + only: /[0-9]+(\.[0-9]+)*/ |
0 commit comments