diff --git a/.gitignore b/.gitignore index 30109f913..e3bd7c1fe 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile index a4dee0531..384e036d9 100644 --- a/Makefile +++ b/Makefile @@ -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) \ @@ -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