Skip to content

Commit

Permalink
make test_install_SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Apr 12, 2017
1 parent 80c378d commit 5804c04
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ SQLiteCustom/GRDBCustomSQLite-USER.xcconfig
Tests/CocoaPods/GRDBiOS/Podfile.lock
Tests/CocoaPods/GRDBiOS/Pods

# SPM build directory
# SPM
.build

Tests/SPM/Packages
Tests/SPM/Package.pins
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test_framework: test_framework_GRDB test_framework_GRDBCustom test_framework_GRD
test_framework_GRDB: test_framework_GRDBOSX test_framework_GRDBWatchOS test_framework_GRDBiOS
test_framework_GRDBCustom: test_framework_GRDBCustomSQLiteOSX test_framework_GRDBCustomSQLiteiOS
test_framework_GRDBCipher: test_framework_GRDBCipherOSX test_framework_GRDBCipheriOS
test_install: test_install_manual test_install_GRDBCipher test_CocoaPodsLint
test_install: test_install_manual test_install_GRDBCipher test_install_SPM test_CocoaPodsLint

test_framework_GRDBOSX:
$(XCODEBUILD) \
Expand Down Expand Up @@ -141,6 +141,17 @@ test_install_GRDBCipher: SQLCipher
-destination $(MAX_IOS_DESTINATION) \
clean build

test_install_SPM:
cd Tests/SPM && \
swift package reset && \
rm -rf Packages/GRDB && \
swift package edit GRDB --revision master && \
rm -rf Packages/GRDB && \
ln -s ../../.. Packages/GRDB && \
swift build && \
./.build/debug/SPM && \
rm -rf Packages/GRDB

test_CocoaPodsLint:
ifdef POD
$(POD) lib lint --allow-warnings
Expand Down

0 comments on commit 5804c04

Please sign in to comment.