Skip to content

Running Swift Linux Tests on Mac

Mike Kistler edited this page Jul 29, 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

To run all tests:

swift test

To run

Clone this wiki locally