File tree Expand file tree Collapse file tree 3 files changed +26
-11
lines changed
Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -10,33 +10,38 @@ matrix:
1010 - os : linux
1111 dist : trusty
1212 sudo : required
13- env : SWIFT_SNAPSHOT=4.0.3
14- env : TESTDB_NAME=testdb_1
13+ env : SWIFT_SNAPSHOT=4.0.3 TESTDB_NAME=testdb_1
1514 - os : linux
1615 dist : trusty
1716 sudo : required
1817 env : TESTDB_NAME=testdb_2
1918 - os : linux
2019 dist : trusty
2120 sudo : required
22- env : SWIFT_SNAPSHOT=swift-4.2-DEVELOPMENT-SNAPSHOT-2018-06-19-a
23- env : TESTDB_NAME=testdb_3
21+ env : SWIFT_SNAPSHOT=4.2 TESTDB_NAME=testdb_3
22+ - os : linux
23+ dist : trusty
24+ sudo : required
25+ env : SWIFT_SNAPSHOT=4.2 KITURA_NIO=1 TESTDB_NAME=testdb_4
2426 - os : osx
2527 osx_image : xcode9.2
2628 sudo : required
27- env : SWIFT_SNAPSHOT=4.0.3
28- env : TESTDB_NAME=testdb_4
29+ env : SWIFT_SNAPSHOT=4.0.3 TESTDB_NAME=testdb_5
2930 - os : osx
3031 osx_image : xcode9.4
3132 sudo : required
32- env : TESTDB_NAME=testdb_5
33+ env : TESTDB_NAME=testdb_6
34+ - os : osx
35+ osx_image : xcode10
36+ sudo : required
37+ env : SWIFT_SNAPSHOT=4.2 TESTDB_NAME=testdb_7
3338 - os : osx
34- osx_image : xcode9.4
39+ osx_image : xcode10
3540 sudo : required
36- env : SWIFT_SNAPSHOT=swift-4.2-DEVELOPMENT-SNAPSHOT-2018-06-04-a
37- env : TESTDB_NAME=testdb_6
41+ env : SWIFT_SNAPSHOT=4.2 KITURA_NIO=1 TESTDB_NAME=testdb_8
3842
3943before_install :
44+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install libressl ; fi
4045 - git clone https://github.com/IBM-Swift/Package-Builder.git
4146 - git clone -b master "https://$GITHUB_USER:$GITHUB_PWD@github.com/IBM-Swift/Kitura-TestingCredentials.git"
4247
Original file line number Diff line number Diff line change 1818 **/
1919
2020import PackageDescription
21+ import Foundation
22+
23+ var kituraNetPackage : Package . Dependency
24+
25+ if ProcessInfo . processInfo. environment [ " KITURA_NIO " ] != nil {
26+ kituraNetPackage = . package ( url: " https://github.com/IBM-Swift/Kitura-NIO.git " , from: " 1.0.0 " )
27+ } else {
28+ kituraNetPackage = . package ( url: " https://github.com/IBM-Swift/Kitura-net.git " , from: " 2.1.0 " )
29+ }
2130
2231let package = Package (
2332 name: " Kitura-CouchDB " ,
@@ -31,7 +40,7 @@ let package = Package(
3140 // Dependencies declare other packages that this package depends on.
3241 // .package(url: /* package url */, from: "1.0.0"),
3342 . package ( url: " https://github.com/IBM-Swift/HeliumLogger.git " , from: " 1.7.0 " ) ,
34- . package ( url : " https://github.com/IBM-Swift/Kitura-net.git " , from : " 2.1.0 " ) ,
43+ kituraNetPackage ,
3544 . package ( url: " https://github.com/IBM-Swift/SwiftyJSON.git " , from: " 17.0.0 " ) ,
3645 ] ,
3746 targets: [
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import XCTest
2121 import Darwin
2222#endif
2323import Foundation
24+ import Dispatch
2425
2526@testable import CouchDB
2627
You can’t perform that action at this time.
0 commit comments