Conditional Conformance requires Swift 4.1 and Xcode 9.3+

This commit is contained in:
Gwendal Roué committed 2018-04-29 19:21:10 +02:00
1 parent 39c5313738
commit 83104769ef
3 files changed
+52 -123

No files matched your search

+46 -104
View File
@@ -15,198 +15,140 @@ jobs:
###########################################
## Test GRDB
# Test GRDBOSX (Xcode 9.2)
# Test GRDBOSX (Xcode 9.3)
- stage: Test GRDB
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBOSX (Xcode 9.2, macOS)
- TID=GRDBOSX (Xcode 9.3, macOS)
script: make test_framework_GRDBOSX
# Test GRDBWatchOS (Xcode 9.2)
# Test GRDBWatchOS (Xcode 9.3)
- stage: Test GRDB
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBWatchOS (Xcode 9.2, watchOS)
- TID=GRDBWatchOS (Xcode 9.3, watchOS)
script: make test_framework_GRDBWatchOS
# Test GRDBiOS (Xcode 9.2, iOS <MAXIMUM VERSION>)
# Test GRDBiOS (Xcode 9.3, iOS <MAXIMUM VERSION>)
- stage: Test GRDB
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBiOS (Xcode 9.2, iOS <MAX>)
- TID=GRDBiOS (Xcode 9.3, iOS <MAX>)
script: make test_framework_GRDBiOS_maxTarget
# Test GRDBiOS (Xcode 9.2, iOS <MINIMUM VERSION>))
# Test GRDBiOS (Xcode 9.3, iOS <MINIMUM VERSION>))
- stage: Test GRDB
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBiOS (Xcode 9.2, iOS <MIN>)
- TID=GRDBiOS (Xcode 9.3, iOS <MIN>)
script: make test_framework_GRDBiOS_minTarget
# Test GRDB [SPM] (Xcode 9.2, macOS)
# Test GRDB [SPM] (Xcode 9.3, macOS)
- stage: Test GRDB
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDB [SPM] (Xcode 9.2, macOS)
- TID=GRDB [SPM] (Xcode 9.3, macOS)
script: make test_SPM
# Test GRDBOSX (Xcode 9.0)
- stage: Test GRDB
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9
env:
- TID=GRDBOSX (Xcode 9.0, macOS)
script: make test_framework_GRDBOSX
# Test GRDBiOS (Xcode 9.0, iOS <MAXIMUM VERSION>)
- stage: Test GRDB
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9
env:
- TID=GRDBiOS (Xcode 9.0, iOS <MAX>)
script: make test_framework_GRDBiOS_maxTarget
###########################################
## Test GRDB (Custom SQLite)
# Test GRDBCustomSQLiteOSX (Xcode 9.2)
# Test GRDBCustomSQLiteOSX (Xcode 9.3)
- stage: Test GRDB + Custom SQLite
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBCustomSQLiteOSX (Xcode 9.2, macOS)
- TID=GRDBCustomSQLiteOSX (Xcode 9.3, macOS)
script: make test_framework_GRDBCustomSQLiteOSX
# Test GRDBCustomSQLiteiOS (Xcode 9.2, iOS <MAXIMUM VERSION>)
# Test GRDBCustomSQLiteiOS (Xcode 9.3, iOS <MAXIMUM VERSION>)
- stage: Test GRDB + Custom SQLite
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBCustomSQLiteiOS (Xcode 9.2, iOS <MAX>)
- TID=GRDBCustomSQLiteiOS (Xcode 9.3, iOS <MAX>)
script: make test_framework_GRDBCustomSQLiteiOS_maxTarget
# Test GRDBCustomSQLiteiOS (Xcode 9.2, iOS <MINIMUM VERSION>))
# Test GRDBCustomSQLiteiOS (Xcode 9.3, iOS <MINIMUM VERSION>))
- stage: Test GRDB + Custom SQLite
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBCustomSQLiteiOS (Xcode 9.2, iOS <MIN>)
- TID=GRDBCustomSQLiteiOS (Xcode 9.3, iOS <MIN>)
script: make test_framework_GRDBCustomSQLiteiOS_minTarget
# Test GRDBCustomSQLiteOSX (Xcode 9.0)
- stage: Test GRDB + Custom SQLite
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9
env:
- TID=GRDBCustomSQLiteOSX (Xcode 9.0, macOS)
script: make test_framework_GRDBCustomSQLiteOSX
# Test GRDBCustomSQLiteiOS (Xcode 9.0, iOS <MAXIMUM VERSION>)
- stage: Test GRDB + Custom SQLite
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9
env:
- TID=GRDBCustomSQLiteiOS (Xcode 9.0, iOS <MAX>)
script: make test_framework_GRDBCustomSQLiteiOS_maxTarget
###########################################
## Test GRDB (SQLCipher)
# Test GRDBCipherOSX (Xcode 9.2)
# Test GRDBCipherOSX (Xcode 9.3)
- stage: Test GRDB + SQLCipher
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBCipherOSX (Xcode 9.2, macOS)
- TID=GRDBCipherOSX (Xcode 9.3, macOS)
script: make test_framework_GRDBCipherOSX
# Test GRDBCipheriOS (Xcode 9.2, iOS <MAXIMUM VERSION>)
# Test GRDBCipheriOS (Xcode 9.3, iOS <MAXIMUM VERSION>)
- stage: Test GRDB + SQLCipher
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBCipheriOS (Xcode 9.2, iOS <MAX>)
- TID=GRDBCipheriOS (Xcode 9.3, iOS <MAX>)
script: make test_framework_GRDBCipheriOS_maxTarget
# Test GRDBCipheriOS (Xcode 9.2, iOS <MINIMUM VERSION>))
# Test GRDBCipheriOS (Xcode 9.3, iOS <MINIMUM VERSION>))
- stage: Test GRDB + SQLCipher
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=GRDBCipheriOS (Xcode 9.2, iOS <MIN>)
- TID=GRDBCipheriOS (Xcode 9.3, iOS <MIN>)
script: make test_framework_GRDBCipheriOS_minTarget
# Test GRDBCipherOSX (Xcode 9.0)
- stage: Test GRDB + SQLCipher
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9
env:
- TID=GRDBCipherOSX (Xcode 9.0, macOS)
script: make test_framework_GRDBCipherOSX
# Test GRDBCipheriOS (Xcode 9.0, iOS <MAXIMUM VERSION>)
- stage: Test GRDB + SQLCipher
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9
env:
- TID=GRDBCipheriOS (Xcode 9.0, iOS <MAX>)
script: make test_framework_GRDBCipheriOS_maxTarget
###########################################
## Test Installation Methods
# Manual Install (Xcode 9.2)
# Manual Install (Xcode 9.3)
- stage: Test Installation
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=Manual Install (Xcode 9.2)
- TID=Manual Install (Xcode 9.3)
script: make test_install_manual
# Manual Install (GRDBCipher, Xcode 9.2)
# Manual Install (GRDBCipher, Xcode 9.3)
- stage: Test Installation
gemfile: .ci/gemfiles/Gemfile.travis
osx_image: xcode9.2
osx_image: xcode9.3
env:
- TID=Manual Install (GRDBCipher, Xcode 9.2)
- TID=Manual Install (GRDBCipher, Xcode 9.3)
script: make test_install_GRDBCipher
# Cocoapods Lint (Xcode 9.2)
# Cocoapods Lint (Xcode 9.3)
- stage: Test Installation
osx_image: xcode9.2
osx_image: xcode9.3
install:
- gem install cocoapods # Since Travis is not always on latest version
env:
- TID=Cocoapods (Xcode 9.2)
- TID=Cocoapods (Xcode 9.3)
script: make test_CocoaPodsLint
# Cocoapods Lint (Xcode 9.0)
# SPM Install (Xcode 9.3)
- stage: Test Installation
osx_image: xcode9
install:
- gem install cocoapods # Since Travis is not always on latest version
osx_image: xcode9.3
env:
- TID=Cocoapods (Xcode 9.0)
script: make test_CocoaPodsLint
# SPM Install (Xcode 9.2)
- stage: Test Installation
osx_image: xcode9.2
env:
- TID=SPM (Xcode 9.2)
- TID=SPM (Xcode 9.3)
script: make test_install_SPM
## Carthage Build
## Commented out until `make test_CarthageBuild` performs *reliably*.
## See https://github.com/groue/GRDB.swift/pull/262
# - stage: Test Installation
# osx_image: xcode9.2
# osx_image: xcode9.3
# before_install:
# - brew update
# - brew outdated carthage || brew upgrade carthage
+2 -16
View File
@@ -44,26 +44,12 @@ XCPRETTY_PATH := $(shell command -v xcpretty 2> /dev/null)
# xcodebuild actions to run test targets
TEST_ACTIONS = clean build build-for-testing test-without-building
# xcodebuild destination to run tests on iOS 8.1 (requires a pre-installed simulator)
MIN_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 4s,OS=8.1"
# When adding support for an Xcode version, look for available devices with `instruments -s devices`
ifeq ($(XCODEVERSION),9.3)
MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 8,OS=11.3"
else ifeq ($(XCODEVERSION),9.2)
MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 8,OS=11.2"
else ifeq ($(XCODEVERSION),9.1)
MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 8,OS=11.1"
else ifeq ($(XCODEVERSION),9.0)
ifeq ($(XCODEVERSION_PATCH),1)
# Xcode 9.0.1: @groue's personal computer
MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 8,OS=11.0.1"
else
# Xcode 9.0: Travis https://docs.travis-ci.com/user/reference/osx/#Xcode-9.0
MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 8,OS=11.0"
endif
MIN_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 4s,OS=9.0"
else
# Xcode < 9.0 is not supported
# Swift 4.1 required: Xcode < 9.3 is not supported
endif
# If xcpretty is available, use it for xcodebuild output
+4 -3
View File
@@ -1,15 +1,16 @@
GRDB 2 [![Swift](https://img.shields.io/badge/swift-4-orange.svg?style=flat)](https://developer.apple.com/swift/) [![Platforms](https://img.shields.io/cocoapods/p/GRDB.swift.svg)](https://developer.apple.com/swift/) [![License](https://img.shields.io/github/license/groue/GRDB.swift.svg?maxAge=2592000)](/LICENSE) [![Build Status](https://travis-ci.org/groue/GRDB.swift.svg?branch=master)](https://travis-ci.org/groue/GRDB.swift)
GRDB 3 [![Swift](https://img.shields.io/badge/swift-4-orange.svg?style=flat)](https://developer.apple.com/swift/) [![Platforms](https://img.shields.io/cocoapods/p/GRDB.swift.svg)](https://developer.apple.com/swift/) [![License](https://img.shields.io/github/license/groue/GRDB.swift.svg?maxAge=2592000)](/LICENSE) [![Build Status](https://travis-ci.org/groue/GRDB.swift.svg?branch=master)](https://travis-ci.org/groue/GRDB.swift)
==========
### A toolkit for SQLite databases, with a focus on application development
**Latest release**: March 30, 2018 • version 2.10.0 • [CHANGELOG](CHANGELOG.md)
**Requirements**: iOS 8.0+ / OSX 10.9+ / watchOS 2.0+ &bull; Swift 4+ / Xcode 9+
**Requirements**: iOS 8.0+ / OSX 10.9+ / watchOS 2.0+ &bull; Swift 4+ / Xcode 9.3+
| Swift version | GRDB version |
| ------------- | ----------------------------------------------------------- |
| **Swift 4+** | **v2.10.0** |
| **Swift 4.1** | **v3.0.0** |
| Swift 4 | [v2.10.0](https://github.com/groue/GRDB.swift/tree/v2.10.0) |
| Swift 3.2 | [v1.3.0](https://github.com/groue/GRDB.swift/tree/v1.3.0) |
| Swift 3.1 | [v1.3.0](https://github.com/groue/GRDB.swift/tree/v1.3.0) |
| Swift 3 | [v1.0](https://github.com/groue/GRDB.swift/tree/v1.0) |