diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c1c28af --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,17 @@ +version: 2 +jobs: + test: + macos: + xcode: "10.1.0" + shell: /bin/bash --login -eo pipefail + steps: + - checkout + - run: + name: Run tests + command: swift test -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.13" + +workflows: + version: 2 + build-test-lint: + jobs: + - test diff --git a/README.md b/README.md index 53c08b1..8e59644 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Manage the Xcodes installed on your Mac +[![CircleCI](https://circleci.com/gh/RobotsAndPencils/xcodes.svg?style=svg)](https://circleci.com/gh/RobotsAndPencils/xcodes) + ## Installation ### Homebrew (Preferred) diff --git a/Tests/XcodesKitTests/Environment+Mock.swift b/Tests/XcodesKitTests/Environment+Mock.swift index ef46e53..6564ea4 100644 --- a/Tests/XcodesKitTests/Environment+Mock.swift +++ b/Tests/XcodesKitTests/Environment+Mock.swift @@ -36,6 +36,7 @@ extension Files { let url = URL(fileURLWithPath: "Stub.plist", relativeTo: URL(fileURLWithPath: #file).deletingLastPathComponent()) return try? Data(contentsOf: url) }, - removeItem: { _ in } + removeItem: { _ in }, + createFile: { _, _, _ in return true } ) } \ No newline at end of file