Skip to content

Commit

Permalink
[SPM] Update Makefile to using swift test
Browse files Browse the repository at this point in the history
  • Loading branch information
norio-nomura committed Mar 19, 2016
1 parent 0a6faaf commit 55fce2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ VERSION_STRING=$(shell agvtool what-marketing-version -terse1)
COMPONENTS_PLIST=Source/swiftlint/Supporting Files/Components.plist

SWIFT_SNAPSHOT=swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a
SWIFT_BUILD_COMMAND=/Library/Developer/Toolchains/$(SWIFT_SNAPSHOT).xctoolchain/usr/bin/swift build
SWIFT_COMMAND=/Library/Developer/Toolchains/$(SWIFT_SNAPSHOT).xctoolchain/usr/bin/swift
SWIFT_BUILD_COMMAND=$(SWIFT_COMMAND) build
SWIFT_TEST_COMMAND=$(SWIFT_COMMAND) test

.PHONY: all bootstrap clean install package test uninstall

Expand Down Expand Up @@ -84,8 +86,9 @@ swift_snapshot_install:
spm:
$(SWIFT_BUILD_COMMAND)

spm_test: PATH:=/Library/Developer/Toolchains/$(SWIFT_SNAPSHOT).xctoolchain/usr/bin/:$(PATH)
spm_test: spm
.build/Debug/SwiftLintFrameworkTests
$(SWIFT_TEST_COMMAND)

spm_clean:
$(SWIFT_BUILD_COMMAND) --clean
Expand Down

0 comments on commit 55fce2c

Please sign in to comment.