diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index efaff45..0000000 --- a/.travis.yml +++ /dev/null @@ -1,51 +0,0 @@ -osx_image: xcode11.3 -cache: - - bundler: true -install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bundle install; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bundle exec danger; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew bundle; fi -jobs: - include: - - stage: Test - name: "SwiftPM - Linux" - os: linux - sudo: required - dist: trusty - env: - - SWIFT_VERSION=5.0 - - SWIFTENV_INSTALL="https://gist.githubusercontent.com/johnhammerlund/b4c3686e4270d463ef955c5a77f0b814/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh" - install: - - eval "$(curl -sL $SWIFTENV_INSTALL)" - script: - - rake test_spm - - stage: Test - name: "SwiftPM - macOS" - os: osx - script: - - rake test_spm - - stage: Test - name: "iOS" - os: osx - sudo: required - script: - - rake test_ios - - stage: Test - name: "macOS" - os: osx - script: - - rake test_macos - - stage: Test - name: "tvOS" - os: osx - sudo: required - script: - - rake test_tvos - - stage: Test - name: "watchOS" - os: osx - script: - - rake test_watchos -after_success: -- bash <(curl -s https://codecov.io/bash) -J 'Relay' -F main diff --git a/Package.swift b/Package.swift index c857267..38d4ce2 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( name: "Relay", platforms: [ .macOS(.v10_10), - .iOS(.v8), + .iOS(.v12), .tvOS(.v9), .watchOS(.v2) ], diff --git a/README.md b/README.md index b1dea15..4ba0daf 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ This framework aims to champion the [Test Pyramid](https://martinfowler.com/arti - [Container Scope](#container-scope) ## Requirements -- iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ / Linux +- iOS 12.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ / Linux - Xcode 10+ / Swift 4.2+ ## Installation diff --git a/Relay.podspec b/Relay.podspec index c0cd588..5af313f 100644 --- a/Relay.podspec +++ b/Relay.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |spec| spec.summary = 'Swift Dynamic Dependency Injection for modern testing' spec.source = { :git => 'https://github.com/mindbody/Relay.git', :tag => $version } spec.source_files = 'Sources/**/*.swift' - spec.ios.deployment_target = '8.0' + spec.ios.deployment_target = '12.0' spec.watchos.deployment_target = '2.0' spec.tvos.deployment_target = '9.0' spec.osx.deployment_target = '10.10' diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..45e2ab5 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,30 @@ +trigger: +- master + +pool: + vmImage: 'macos-latest' + +variables: + - group: mobile-shared-secrets + +jobs: + - job: tests + displayName: 'Run Tests' + steps: + - script: | + swift --version + displayName: 'Swift version' + - script: | + swiftlint version + displayName: 'Swift Lint version' + - script: | + swiftlint lint --quiet + displayName: 'Lint' + - script: | + git config --global url."https://$GITHUB_ACCESS_TOKEN@github.com/mindbody".insteadOf "https://github.com/mindbody" + displayName: 'Update Git URLs' + env: + GITHUB_ACCESS_TOKEN: $(GITHUB_ACCESS_TOKEN) + - script: | + xcodebuild test -workspace Relay.xcworkspace -scheme Relay-iOS -destination 'platform=iOS Simulator,name=iPhone 8,OS=latest' + displayName: xcodebuild test