Skip to content

Commit b0ad545

Browse files
committed
Merge branch 'develop'
2 parents 54b529a + 0fc8582 commit b0ad545

74 files changed

Lines changed: 5841 additions & 252 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.d/run-tests.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
SWIFT_VERSION="`swift --version | head -1 | sed 's/^.*[Vv]ersion[\t ]*\([.[:digit:]]*\).*$/\1/g'`"
4+
declare -a SWIFT_VERSION_LIST="(${SWIFT_VERSION//./ })"
5+
SWIFT_MAJOR=${SWIFT_VERSION_LIST[0]}
6+
SWIFT_MINOR=${SWIFT_VERSION_LIST[1]}
7+
SWIFT_SUBMINOR_OPT=${SWIFT_VERSION_LIST[2]}
8+
SWIFT_SUBMINOR=${SWIFT_SUBMINOR_OPT}
9+
if [[ "x${SWIFT_SUBMINOR}" = "x" ]]; then SWIFT_SUBMINOR=0; fi
10+
11+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
12+
# Gives “Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
13+
# w/ Xcode 8.3. We set the lang-version in the Base.xcconfig, presumably
14+
# Xcode 8.3 can't do this right ...
15+
16+
if [[ ${SWIFT_MAJOR} -ge 4 ]]; then
17+
xcodebuild -scheme ZeeQL -sdk macosx test
18+
else
19+
echo "Not running tests on ${SWIFT_VERSION} yet ..."
20+
fi
21+
else
22+
# Swift 3.1.1 just crashes being building the tests. Yay.
23+
# Swift 4 works fine.
24+
# Swift 4.1 fails the Codable tests.
25+
if [[ ${SWIFT_MAJOR} -ge 4 ]]; then
26+
if [[ ${SWIFT_MINOR} -gt 0 ]]; then
27+
echo "Not running tests on ${SWIFT_VERSION} yet ..."
28+
else
29+
swift test
30+
fi
31+
fi
32+
fi

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,20 @@ matrix:
99
include:
1010
- os: Linux
1111
dist: trusty
12-
env: SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-3.1.1-release/ubuntu1404/swift-3.1.1-RELEASE/swift-3.1.1-RELEASE-ubuntu14.04.tar.gz"
12+
env: SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-4.1.2-release/ubuntu1404/swift-4.1.2-RELEASE/swift-4.1.2-RELEASE-ubuntu14.04.tar.gz"
1313
sudo: required
1414
- os: Linux
1515
dist: trusty
16-
env: SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-4.0.3-release/ubuntu1404/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu14.04.tar.gz"
16+
env: SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-4.2.4-release/ubuntu1404/swift-4.2.4-RELEASE/swift-4.2.4-RELEASE-ubuntu14.04.tar.gz"
1717
sudo: required
1818
- os: Linux
1919
dist: trusty
20-
env: SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-4.1-release/ubuntu1404/swift-4.1-RELEASE/swift-4.1-RELEASE-ubuntu14.04.tar.gz"
20+
env: SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-5.0-release/ubuntu1404/swift-5.0-RELEASE/swift-5.0-RELEASE-ubuntu14.04.tar.gz"
2121
sudo: required
2222
- os: osx
23-
osx_image: xcode8.3
23+
osx_image: xcode10.1
2424
- os: osx
25-
osx_image: xcode9
26-
- os: osx
27-
osx_image: xcode9.3
25+
osx_image: xcode10.2
2826

2927
before_install:
3028
- ./.travis.d/before-install.sh
@@ -36,3 +34,4 @@ script:
3634
- export PATH="$HOME/usr/bin:$PATH"
3735
- swift build -c release
3836
- swift build -c debug
37+
- ./.travis.d/run-tests.sh

CSQLite3/ios/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __CSQLITE3_SHIM_H__
33

44
#if defined(__APPLE__) && defined(__MACH__)
5-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
5+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
66
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"
77
# else
88
# include "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"

CSQLite3/macos/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __CSQLITE3_SHIM_H__
33

44
#if defined(__APPLE__) && defined(__MACH__)
5-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
5+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
66
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sqlite3.h"
77
# elif __clang_major__ >= 9
88
# include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sqlite3.h"

CSQLite3/simulator/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __CSQLITE3_SHIM_H__
33

44
#if defined(__APPLE__) && defined(__MACH__)
5-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
5+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
66
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h"
77
# else
88
# include "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/sqlite3.h"

CSQLite3/tvos-simulator/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __CSQLITE3_SHIM_H__
33

44
#if defined(__APPLE__) && defined(__MACH__)
5-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
5+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
66
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/usr/include/sqlite3.h"
77
# else
88
# include "/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/usr/include/sqlite3.h"

CSQLite3/tvos/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __CSQLITE3_SHIM_H__
33

44
#if defined(__APPLE__) && defined(__MACH__)
5-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
5+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
66
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sqlite3.h"
77
# else
88
# include "/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sqlite3.h"

CSQLite3/watchos-simulator/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __CSQLITE3_SHIM_H__
33

44
#if defined(__APPLE__) && defined(__MACH__)
5-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
5+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
66
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/sqlite3.h"
77
# else
88
# include "/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/sqlite3.h"

CSQLite3/watchos/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define __CSQLITE3_SHIM_H__
33

44
#if defined(__APPLE__) && defined(__MACH__)
5-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
5+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
66
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/include/sqlite3.h"
77
# else
88
# include "/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/include/sqlite3.h"

CSQLite3/xcode-macos/CSQLite3Shim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#if defined(__APPLE__) && defined(__MACH__)
55
// TODO: this may have issues with LLDB as outlined below
6-
# if __clang_major__ >= 10 // Assume Xcode-beta.app (XcodeXbeta)
6+
# if __clang_major__ >= 11 // Assume Xcode-beta.app (XcodeXbeta)
77
# include "/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sqlite3.h"
88
# else __clang_major__ >= 9
99
# include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sqlite3.h"

0 commit comments

Comments
 (0)