Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
* Uses simple makefile for clean & build
* Removes swiftformat from dependencies
  • Loading branch information
kdubb committed Aug 17, 2019
1 parent 294b0ce commit 6d2b1bc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/.swiftpm
/build
/Project
/TestResults
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


project:=OSLogTrace

clean:
rm -rf $(project).xcodeproj
rm -rf Project
rm -rf TestResults

define buildteston
xcodebuild -project $(project).xcodeproj -scheme $(project)_$(1) -resultBundleVersion 3 -resultBundlePath ./TestResults/$(1) -destination 'platform=$(1) Simulator,name=$(2)' build test
endef

define buildtest
xcodebuild -project $(project).xcodeproj -scheme $(project)_$(1) -resultBundleVersion 3 -resultBundlePath ./TestResults/$(1) build test
endef

build-test-all:
xcodegen
$(call buildtest,macOS)
$(call buildteston,iOS,iPhone 8)
$(call buildteston,tvOS,Apple TV)
1 change: 0 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ let package = Package(
targets: ["OSLogTrace"]),
],
dependencies: [
.package(url: "https://github.com/nicklockwood/SwiftFormat.git", .upToNextMinor(from: "0.40.10"))
],
targets: [
.target(
Expand Down
4 changes: 0 additions & 4 deletions build-test

This file was deleted.

0 comments on commit 6d2b1bc

Please sign in to comment.