From 5804c044d513a9b1d93dd4f04b4641a6b2deeb34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 12 Apr 2017 14:24:11 +0200 Subject: [PATCH] make test_install_SPM --- .gitignore | 5 +++-- Makefile | 13 ++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) 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