|
| 1 | +git: |
| 2 | + depth: 3 |
| 3 | + submodules: false |
| 4 | + |
| 5 | +notifications: |
| 6 | + email: false |
| 7 | + |
| 8 | +branches: |
| 9 | + only: |
| 10 | + - master |
| 11 | + - dev |
| 12 | + - /^release\/.*$/ |
| 13 | + |
| 14 | +stages: |
| 15 | + - compile-and-test |
| 16 | + |
| 17 | +env: |
| 18 | + global: |
| 19 | + - JOBS=4 |
| 20 | + - PROJECT_NAME="mapbox-vision-ios" |
| 21 | + |
| 22 | +jobs: |
| 23 | + global: |
| 24 | + env: |
| 25 | + - IOS_BUILD_DIR='build' |
| 26 | + include: |
| 27 | + - &iOS |
| 28 | + stage: compile-and-test |
| 29 | + if: type = pull_request |
| 30 | + os: osx |
| 31 | + osx_image: xcode11.2 |
| 32 | + language: swift |
| 33 | + name: iOS / Release / Simulator / Xcode 11.2 |
| 34 | + cache: |
| 35 | + directories: |
| 36 | + - SDK/Platforms/iOS/Carthage |
| 37 | + - $HOME/Library/Caches/Homebrew |
| 38 | + env: |
| 39 | + - IOS_BUILD_TYPE='Release' |
| 40 | + - IOS_PLATFORM_TYPE='iphonesimulator' |
| 41 | + - DST='platform=iOS Simulator,OS=13.2.2,name=iPhone 11' |
| 42 | + install: |
| 43 | + - scripts/ci/install-dependencies-to-build.sh |
| 44 | + - scripts/ci/install-dependencies-to-pull-from-s3.sh |
| 45 | + before_script: |
| 46 | + - scripts/ci/init-dependencies-to-build.sh |
| 47 | + - scripts/ci/remote-build-artifacts.sh --pull-native-deps |
| 48 | + - cp -a "Carthage/Build/iOS/${IOS_BUILD_TYPE}-${IOS_PLATFORM_TYPE}/MapboxVisionNative.framework" "Carthage/Build/iOS" |
| 49 | + - cp -a "Carthage/Build/iOS/${IOS_BUILD_TYPE}-${IOS_PLATFORM_TYPE}/MapboxVisionARNative.framework" "Carthage/Build/iOS" |
| 50 | + - cp -a "Carthage/Build/iOS/${IOS_BUILD_TYPE}-${IOS_PLATFORM_TYPE}/MapboxVisionSafetyNative.framework" "Carthage/Build/iOS" |
| 51 | + script: |
| 52 | + - scripts/ci/build.sh --build MapboxVision |
| 53 | + - scripts/ci/build.sh --build MapboxVisionAR |
| 54 | + - scripts/ci/build.sh --build MapboxVisionSafety |
| 55 | + before_cache: |
| 56 | + - scripts/ci/prepare-for-cache.sh |
| 57 | + |
| 58 | + - <<: *iOS |
| 59 | + name: iOS / Debug / Simulator / Xcode 11.2 |
| 60 | + env: |
| 61 | + - IOS_BUILD_TYPE='Debug' |
| 62 | + - IOS_PLATFORM_TYPE='iphonesimulator' |
| 63 | + - DST='platform=iOS Simulator,OS=13.2.2,name=iPhone 11' |
| 64 | + |
| 65 | + - <<: *iOS |
| 66 | + name: iOS / Release / Device / Xcode 11.2 |
| 67 | + env: |
| 68 | + - IOS_BUILD_TYPE='Release' |
| 69 | + - IOS_PLATFORM_TYPE='iphoneos' |
| 70 | + - DST='generic/platform=iOS' |
| 71 | + |
| 72 | + - <<: *iOS |
| 73 | + name: iOS / Debug / Device / Xcode 11.2 |
| 74 | + env: |
| 75 | + - IOS_BUILD_TYPE='Debug' |
| 76 | + - IOS_PLATFORM_TYPE='iphoneos' |
| 77 | + - DST='generic/platform=iOS' |
0 commit comments