From b916bca1f67f9698f6950291ba1fa449ece48e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 4 Aug 2018 07:19:06 +0200 Subject: [PATCH] Split test_CocoaPodsLint Makefile target ... in order to avoid Travis CI timeouts --- .travis.yml | 13 +++++++++++-- Makefile | 15 ++++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65c652e9e..e2a760a47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -134,8 +134,17 @@ jobs: install: - gem install cocoapods # Since Travis is not always on latest version env: - - TID=CocoaPods Lint (Xcode 9.4) - script: make test_CocoaPodsLint + - TID=CocoaPods Lint GRDB (Xcode 9.4) + script: make test_CocoaPodsLint_GRDB + + # CocoaPods Lint (Xcode 9.4) + - stage: Test Installation + osx_image: xcode9.4 + install: + - gem install cocoapods # Since Travis is not always on latest version + env: + - TID=CocoaPods Lint GRDBCipher (Xcode 9.4) + script: make test_CocoaPodsLint_GRDBCipher # CocoaPods Install (Xcode 9.4) - stage: Test Installation diff --git a/Makefile b/Makefile index f6079aa46..52623cc63 100644 --- a/Makefile +++ b/Makefile @@ -93,6 +93,7 @@ test_framework_GRDB: test_framework_GRDBOSX test_framework_GRDBWatchOS test_fram 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_install_SPM test_install_GRDB_CocoaPods test_install_GRDBFTS5_CocoaPods test_install_GRDBCipher_CocoaPods test_CocoaPodsLint +test_CocoaPodsLint: test_CocoaPodsLint_GRDB test_CocoaPodsLint_GRDBCipher test_framework_GRDBOSX: # SQLITE_ENABLE_FTS5 requires macOS 10.13+ @@ -272,11 +273,19 @@ else @exit 1 endif -test_CocoaPodsLint: +test_CocoaPodsLint_GRDB: ifdef POD - $(POD) lib lint --allow-warnings + $(POD) lib lint GRDB.swift.podspec --allow-warnings else - @echo CocoaPods must be installed for test_CocoaPodsLint + @echo CocoaPods must be installed for test_CocoaPodsLint_GRDB + @exit 1 +endif + +test_CocoaPodsLint_GRDBCipher: +ifdef POD + $(POD) lib lint GRDBCipher.podspec --allow-warnings +else + @echo CocoaPods must be installed for test_CocoaPodsLint_GRDBCipher @exit 1 endif