diff --git a/.gitignore b/.gitignore index 0fb4c4d..81847ab 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ Packages .DS_Store *.xcodeproj Package.pins - +Package.resolved diff --git a/Package@swift-4.swift b/Package@swift-4.swift new file mode 100644 index 0000000..fce8430 --- /dev/null +++ b/Package@swift-4.swift @@ -0,0 +1,20 @@ +// swift-tools-version:4.0 +import PackageDescription + +let package = Package( + name: "Multipart", + products: [ + .library(name: "Multipart", targets: ["Multipart"]), + .library(name: "FormData", targets: ["FormData"]), + ], + dependencies: [ + .package(url: "https://github.com/vapor/core.git", .upToNextMajor(from: "2.1.2")), + .package(url: "https://github.com/vapor/engine.git", .upToNextMajor(from: "2.2.0")), + ], + targets: [ + .target(name: "Multipart", dependencies: ["Core", "HTTP"]), + .testTarget(name: "MultipartTests", dependencies: ["Multipart"]), + .target(name: "FormData", dependencies: ["Multipart", "Core"]), + .testTarget(name: "FormDataTests", dependencies: ["FormData"]), + ] +) diff --git a/circle.yml b/circle.yml index c15e3fb..55985d4 100644 --- a/circle.yml +++ b/circle.yml @@ -1,10 +1,16 @@ dependencies: override: - eval "$(curl -sL https://apt.vapor.sh)" - - sudo apt-get install vapor + - sudo apt-get install swift - sudo chmod -R a+rx /usr/ test: override: - swift build - swift build -c release - swift test + - sudo apt-get remove swift + - sudo apt-get install swift-beta + - swift build + - swift build -c release + - swift test + \ No newline at end of file