Skip to content

Running Swift Linux Tests on Mac

Mike Kistler edited this page Jul 17, 2018 · 12 revisions

Setup

Install Docker. See the install instructions in the Docker documentation.

Run

From the root of the Swift SDK

docker run -i -t -v $(pwd):/root/swift-sdk swiftdocker/swift:4.1 /bin/bash
cd ~/swift-sdk
swift package resolve && swift package clean
swift build
swift test
Clone this wiki locally