Skip to content

Instantly share code, notes, and snippets.

@sstadelman
Last active September 2, 2020 17:41
Show Gist options
  • Save sstadelman/12314448ef67037aa8bbff726a6c1ff7 to your computer and use it in GitHub Desktop.
Save sstadelman/12314448ef67037aa8bbff726a6c1ff7 to your computer and use it in GitHub Desktop.
# references: https://oleb.net/2020/swift-docker-linux/
# TO LAUNCH DOCKER SWIFT ENV (from package root)
docker pull swiftlang/swift:nightly-5.3-bionic
# docker run --rm --privileged --interactive --tty --volume "$(pwd):/src" --workdir "/src" swift:latest
docker run --rm --privileged --interactive --tty --volume "$(pwd):/src" --workdir "/src" swiftlang/swift:nightly-5.3-bionic
# FROM INSIDE DOCKER
apt-get update && apt-get upgrade
apt-get install libsqlite3-dev
apt-get install libncurses5-dev
# swift test --enable-test-discovery
# swift test --enable-test-discovery --filter TSCUtilityTests.NetrcTests
swift test --enable-test-discovery --filter CommandsTests.PackageToolTests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment