From ce94d8602593feec184752dcbc3a23f1094ac060 Mon Sep 17 00:00:00 2001 From: Tony Arnold Date: Thu, 5 Oct 2017 11:16:02 +1100 Subject: [PATCH] Fix Swift Package Manager building --- .travis.yml | 2 +- Package.swift | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4655f2b..ba3e8dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ install: script: - set -o pipefail && travis_retry xcodebuild -project ReactiveKit.xcodeproj -scheme ReactiveKit-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.0' test | xcpretty - - swift test --parallel + - swift test after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/Package.swift b/Package.swift index 3d9ed71..8052934 100644 --- a/Package.swift +++ b/Package.swift @@ -2,5 +2,9 @@ import PackageDescription let package = Package( - name: "ReactiveKit" + name: "ReactiveKit", + targets: [ + .target(name: "ReactiveKit", path: "Sources"), + .testTarget(name: "ReactiveKitTests", dependencies: ["ReactiveKit"]) + ] )