Merge pull request #1301 from groue/dev/xcode-14.2

CI Cleanup
This commit is contained in:
Gwendal Roué authored and GitHub committed 2022-12-10 16:50:44 +01:00
commit d2db26d570
3 files changed
+128 -203

No files matched your search

+49 -35
View File
@@ -1,3 +1,5 @@
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
name: "GRDB CI"
on:
@@ -9,12 +11,14 @@ on:
- 'GRDB/**'
- 'Tests/**'
- '.github/workflows/**'
- 'Makefile'
- 'Package.swift'
pull_request:
paths:
- 'GRDB/**'
- 'Tests/**'
- '.github/workflows/**'
- 'Makefile'
- 'Package.swift'
concurrency:
@@ -24,50 +28,56 @@ permissions:
contents: read
jobs:
macOS:
name: macOS
Framework:
name: Framework
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
destination: "platform=macOS"
name: "macOS"
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
destination: "OS=16.1,name=iPhone 14"
name: "iOS"
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
destination: "OS=16.1,name=Apple TV"
name: "tvOS"
- xcode: "Xcode_14.0.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
shell: "/bin/zsh {0}"
destination: "platform=macOS"
name: "macOS"
- xcode: "Xcode_14.0.1.app"
runsOn: macOS-12
destination: "OS=16.0,name=iPhone 14"
name: "iOS"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: make test_framework_GRDBOSX_maxSwift
iOS:
name: iOS
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.0.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
shell: "/bin/zsh {0}"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: make test_framework_GRDBiOS_maxTarget_maxSwift
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project GRDB.xcodeproj -scheme GRDB -destination "${{ matrix.destination }}" OTHER_SWIFT_FLAGS='$(inherited) -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK' GCC_PREPROCESSOR_DEFINITIONS='$(inherited) GRDB_SQLITE_ENABLE_PREUPDATE_HOOK=1' clean test
SPM:
name: SPM
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
name: "Xcode 14.1"
- xcode: "Xcode_14.0.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
shell: "/bin/zsh {0}"
name: "Xcode 14.0.1"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
@@ -75,15 +85,16 @@ jobs:
SQLCipher3:
name: SQLCipher3
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.0.1.app"
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
shell: "/bin/zsh {0}"
name: "Xcode 14.1"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
@@ -91,15 +102,16 @@ jobs:
SQLCipher4:
name: SQLCipher4
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.0.1.app"
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
shell: "/bin/zsh {0}"
name: "Xcode 14.1"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
@@ -107,15 +119,16 @@ jobs:
CustomSQLite:
name: CustomSQLite
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.0.1.app"
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
shell: "/bin/zsh {0}"
name: "Xcode 14.1"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
@@ -123,15 +136,16 @@ jobs:
XCFramework:
name: XCFramework
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}/Contents/Developer"
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.0.1.app"
- xcode: "Xcode_14.1.app"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
shell: "/bin/zsh {0}"
name: "Xcode 14.1"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
+64 -168
View File
@@ -10,78 +10,14 @@
default: test
smokeTest: test_framework_GRDBiOS_maxTarget test_framework_GRDBiOS_minTarget test_framework_SQLCipher3 test_framework_SQLCipher4Encrypted test_framework_GRDBCustomSQLiteiOS_maxTarget test_SPM
# Requirements
# ============
#
# Xcode
# CocoaPods - https://cocoapods.org
# =====
# Tools
GIT := $(shell command -v git)
POD := $(shell command -v pod)
XCRUN := $(shell command -v xcrun)
XCODEBUILD := set -o pipefail && $(shell command -v xcodebuild)
# Xcode Version Information
XCODEVERSION_FULL := $(word 2, $(shell xcodebuild -version))
XCODEVERSION_MAJOR := $(shell xcodebuild -version 2>&1 | grep Xcode | cut -d' ' -f2 | cut -d'.' -f1)
XCODEVERSION_MINOR := $(shell xcodebuild -version 2>&1 | grep Xcode | cut -d' ' -f2 | cut -d'.' -f2)
XCODEVERSION_PATCH := $(shell xcodebuild -version 2>&1 | grep Xcode | cut -d' ' -f2 | cut -d'.' -f3)
# The Xcode Version, containing only the "MAJOR.MINOR" (ex. "8.3" for Xcode 8.3, 8.3.1, etc.)
XCODEVERSION := $(XCODEVERSION_MAJOR).$(XCODEVERSION_MINOR)
# Used to determine if xcpretty is available
XCPRETTY_PATH := $(shell command -v xcpretty 2> /dev/null)
# Avoid the "No output has been received in the last 10m0s" error on Travis:
COCOAPODS_EXTRA_TIME =
ifeq ($(TRAVIS),true)
COCOAPODS_EXTRA_TIME = --verbose
endif
DOCS_PATH = Documentation/Reference
# Tests
# =====
# xcodebuild actions to run test targets
TEST_ACTIONS = clean build build-for-testing test-without-building
# When adding support for an Xcode version, look for available devices with
# `xcrun xctrace list devices` (or the deprecated `instruments -s devices`).
ifeq ($(XCODEVERSION),14.1)
MAX_SWIFT_VERSION = 5.7
MIN_SWIFT_VERSION = # MAX_SWIFT_VERSION is the minimum supported Swift version
MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 14,OS=16.1"
#MIN_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 8,OS=12.4" TODO: restore
MAX_TVOS_DESTINATION = "platform=tvOS Simulator,name=Apple TV,OS=16.1"
#MIN_TVOS_DESTINATION = "platform=tvOS Simulator,name=Apple TV,OS=11.4" TODO: restore
OTHER_SWIFT_FLAGS = '$$(inherited) -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK' # -Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks'
GCC_PREPROCESSOR_DEFINITIONS = '$$(inherited) GRDB_SQLITE_ENABLE_PREUPDATE_HOOK=1'
else ifeq ($(XCODEVERSION),14.0)
MAX_SWIFT_VERSION = 5.7
MIN_SWIFT_VERSION = # MAX_SWIFT_VERSION is the minimum supported Swift version
MAX_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 13,OS=16.0"
MIN_IOS_DESTINATION = "platform=iOS Simulator,name=iPhone 8,OS=12.4"
MAX_TVOS_DESTINATION = "platform=tvOS Simulator,name=Apple TV,OS=16.0"
#MIN_TVOS_DESTINATION = "platform=tvOS Simulator,name=Apple TV,OS=11.4" TODO: restore
OTHER_SWIFT_FLAGS = '$$(inherited) -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK' # -Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks'
GCC_PREPROCESSOR_DEFINITIONS = '$$(inherited) GRDB_SQLITE_ENABLE_PREUPDATE_HOOK=1'
else
# Swift 5.3 required: Xcode < 12.0 is not supported
endif
# If xcpretty is available, use it for xcodebuild output
XCPRETTY =
ifdef XCPRETTY_PATH
XCPRETTY = | xcpretty -c
# On Travis-CI, use xcpretty-travis-formatter
ifeq ($(TRAVIS),true)
XCPRETTY += -f `xcpretty-travis-formatter`
endif
endif
ifdef TOOLCHAIN
# If TOOLCHAIN is specified, add xcodebuild parameter
XCODEBUILD += -toolchain $(TOOLCHAIN)
@@ -100,12 +36,37 @@ else
SWIFT = $(shell $(XCRUN) --find swift 2> /dev/null)
endif
# We test framework test suites, and if GRBD can be installed in an application:
# =====
# Configuration
DOCS_PATH = Documentation/Reference
TEST_ACTIONS = clean build build-for-testing test-without-building
OTHER_SWIFT_FLAGS = '$$(inherited) -D SQLITE_ENABLE_FTS5 -D SQLITE_ENABLE_PREUPDATE_HOOK' # -Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks'
GCC_PREPROCESSOR_DEFINITIONS = '$$(inherited) GRDB_SQLITE_ENABLE_PREUPDATE_HOOK=1'
# Extract min and max destinations from the available devices
MIN_IOS_DESTINATION := $(shell xcrun simctl list -j devices available | Scripts/destination.rb | grep iPhone | grep -v ^13\.7 | sort -n | head -1 | cut -wf 3 | sed 's/\(.*\)/"platform=iOS Simulator,id=\1"/')
MAX_IOS_DESTINATION := $(shell xcrun simctl list -j devices available | Scripts/destination.rb | grep iPhone | grep -v ^13\.7 | sort -rn | head -1 | cut -wf 3 | sed 's/\(.*\)/"platform=iOS Simulator,id=\1"/')
MIN_TVOS_DESTINATION := $(shell xcrun simctl list -j devices available | Scripts/destination.rb | grep tvOS | sort -n | head -1 | cut -wf 3 | sed 's/\(.*\)/"platform=tvOS Simulator,id=\1"/')
MAX_TVOS_DESTINATION := $(shell xcrun simctl list -j devices available | Scripts/destination.rb | grep tvOS | sort -rn | head -1 | cut -wf 3 | sed 's/\(.*\)/"platform=tvOS Simulator,id=\1"/')
# If xcpretty is available, use it for xcodebuild output
XCPRETTY =
XCPRETTY_PATH := $(shell command -v xcpretty 2> /dev/null)
ifdef XCPRETTY_PATH
XCPRETTY = | xcpretty -c
endif
# =====
# Tests
test: test_framework test_archive test_install test_demo_apps
test_framework: test_framework_darwin
test_framework_darwin: test_framework_GRDB test_framework_GRDBCustom test_framework_SQLCipher test_SPM
test_framework_GRDB: test_framework_GRDBOSX test_framework_GRDBWatchOS test_framework_GRDBiOS test_framework_GRDBtvOS
test_framework_GRDB: test_framework_GRDBOSX test_framework_GRDBiOS test_framework_GRDBtvOS
test_framework_GRDBCustom: test_framework_GRDBCustomSQLiteOSX test_framework_GRDBCustomSQLiteiOS
test_framework_SQLCipher: test_framework_SQLCipher3 test_framework_SQLCipher3Encrypted test_framework_SQLCipher4 test_framework_SQLCipher4Encrypted
test_archive: test_archive_GRDBOSX_xcframework
@@ -113,144 +74,80 @@ test_install: test_install_manual test_install_SPM test_install_customSQLite tes
test_CocoaPodsLint: test_CocoaPodsLint_GRDB
test_demo_apps: test_GRDBDemoiOS test_GRDBCombineDemo test_GRDBAsyncDemo
test_framework_GRDBOSX: test_framework_GRDBOSX_maxSwift test_framework_GRDBOSX_minSwift
test_framework_GRDBOSX_maxSwift:
test_framework_GRDBOSX:
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
-destination "platform=macOS" \
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
$(TEST_ACTIONS)
test_framework_GRDBOSX_minSwift:
ifdef MIN_SWIFT_VERSION
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
SWIFT_VERSION=$(MIN_SWIFT_VERSION) \
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
$(TEST_ACTIONS)
endif
test_framework_GRDBWatchOS:
# XCTest is not supported for watchOS: we only make sure that the framework builds.
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
clean build \
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_GRDBiOS: test_framework_GRDBiOS_maxTarget test_framework_GRDBiOS_minTarget
test_framework_GRDBiOS_maxTarget: test_framework_GRDBiOS_maxTarget_maxSwift test_framework_GRDBiOS_maxTarget_minSwift
test_framework_GRDBiOS_maxTarget_maxSwift:
test_framework_GRDBiOS_maxTarget:
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
-destination $(MAX_IOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
$(TEST_ACTIONS)
test_framework_GRDBiOS_maxTarget_minSwift:
ifdef MIN_SWIFT_VERSION
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
-destination $(MAX_IOS_DESTINATION) \
SWIFT_VERSION=$(MIN_SWIFT_VERSION) \
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
$(TEST_ACTIONS)
endif
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_GRDBiOS_minTarget:
ifdef MIN_IOS_DESTINATION
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
-destination $(MIN_IOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
endif
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_GRDBtvOS: test_framework_GRDBtvOS_maxTarget test_framework_GRDBtvOS_minTarget
test_framework_GRDBtvOS_maxTarget: test_framework_GRDBtvOS_maxTarget_maxSwift test_framework_GRDBtvOS_maxTarget_minSwift
test_framework_GRDBtvOS_maxTarget_maxSwift:
test_framework_GRDBtvOS_maxTarget:
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
-destination $(MAX_TVOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
$(TEST_ACTIONS)
test_framework_GRDBtvOS_maxTarget_minSwift:
ifdef MIN_SWIFT_VERSION
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
-destination $(MAX_TVOS_DESTINATION) \
SWIFT_VERSION=$(MIN_SWIFT_VERSION) \
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
$(TEST_ACTIONS)
endif
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_GRDBtvOS_minTarget:
ifdef MIN_TVOS_DESTINATION
$(XCODEBUILD) \
-project GRDB.xcodeproj \
-scheme GRDB \
-destination $(MIN_TVOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
endif
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_GRDBCustomSQLiteOSX: SQLiteCustom
$(XCODEBUILD) \
-project GRDBCustom.xcodeproj \
-scheme GRDBCustom \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_GRDBCustomSQLiteiOS: test_framework_GRDBCustomSQLiteiOS_maxTarget test_framework_GRDBCustomSQLiteiOS_minTarget
test_framework_GRDBCustomSQLiteiOS_maxTarget: test_framework_GRDBCustomSQLiteiOS_maxTarget_maxSwift test_framework_GRDBCustomSQLiteiOS_maxTarget_minSwift
test_framework_GRDBCustomSQLiteiOS_maxTarget_maxSwift: SQLiteCustom
test_framework_GRDBCustomSQLiteiOS_maxTarget: SQLiteCustom
$(XCODEBUILD) \
-project GRDBCustom.xcodeproj \
-scheme GRDBCustom \
-destination $(MAX_IOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
test_framework_GRDBCustomSQLiteiOS_maxTarget_minSwift: SQLiteCustom
ifdef MIN_SWIFT_VERSION
$(XCODEBUILD) \
-project GRDBCustom.xcodeproj \
-scheme GRDBCustom \
-destination $(MAX_IOS_DESTINATION) \
SWIFT_VERSION=$(MIN_SWIFT_VERSION) \
$(TEST_ACTIONS)
endif
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_GRDBCustomSQLiteiOS_minTarget: SQLiteCustom
ifdef MIN_IOS_DESTINATION
$(XCODEBUILD) \
-project GRDBCustom.xcodeproj \
-scheme GRDBCustom \
-destination $(MIN_IOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
endif
$(TEST_ACTIONS) \
$(XCPRETTY)
test_framework_SQLCipher3:
ifdef POD
@@ -259,8 +156,8 @@ ifdef POD
$(XCODEBUILD) \
-workspace GRDBTests.xcworkspace \
-scheme GRDBTests \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
build-for-testing test-without-building
build-for-testing test-without-building \
$(XCPRETTY)
else
@echo CocoaPods must be installed for test_framework_SQLCipher3
@exit 1
@@ -273,8 +170,8 @@ ifdef POD
$(XCODEBUILD) \
-workspace GRDBTests.xcworkspace \
-scheme GRDBEncryptedTests \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
build-for-testing test-without-building
build-for-testing test-without-building \
$(XCPRETTY)
else
@echo CocoaPods must be installed for test_framework_SQLCipher3Encrypted
@exit 1
@@ -287,8 +184,8 @@ ifdef POD
$(XCODEBUILD) \
-workspace GRDBTests.xcworkspace \
-scheme GRDBTests \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
build-for-testing test-without-building
build-for-testing test-without-building \
$(XCPRETTY)
else
@echo CocoaPods must be installed for test_framework_SQLCipher4
@exit 1
@@ -301,8 +198,8 @@ ifdef POD
$(XCODEBUILD) \
-workspace GRDBTests.xcworkspace \
-scheme GRDBEncryptedTests \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
build-for-testing test-without-building
build-for-testing test-without-building \
$(XCPRETTY)
else
@echo CocoaPods must be installed for test_framework_SQLCipher4Encrypted
@exit 1
@@ -323,7 +220,6 @@ test_archive_GRDBOSX_xcframework:
-scheme GRDB \
-configuration Release \
-destination "generic/platform=macOS" \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
-archivePath "$(PWD)/Tests/products/GRDB.xcarchive" \
@@ -427,7 +323,7 @@ endif
test_CocoaPodsLint_GRDB:
ifdef POD
$(POD) lib lint GRDB.swift.podspec --allow-warnings $(COCOAPODS_EXTRA_TIME)
$(POD) lib lint GRDB.swift.podspec --allow-warnings
else
@echo CocoaPods must be installed for test_CocoaPodsLint_GRDB
@exit 1
@@ -438,24 +334,24 @@ test_GRDBDemoiOS:
-project Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj \
-scheme GRDBDemoiOS \
-destination $(MAX_IOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
$(TEST_ACTIONS) \
$(XCPRETTY)
test_GRDBCombineDemo:
$(XCODEBUILD) \
-project Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo.xcodeproj \
-scheme GRDBCombineDemo \
-destination $(MAX_IOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
$(TEST_ACTIONS) \
$(XCPRETTY)
test_GRDBAsyncDemo:
$(XCODEBUILD) \
-project Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo.xcodeproj \
-scheme GRDBAsyncDemo \
-destination $(MAX_IOS_DESTINATION) \
SWIFT_VERSION=$(MAX_SWIFT_VERSION) \
$(TEST_ACTIONS)
$(TEST_ACTIONS) \
$(XCPRETTY)
test_performance:
$(XCODEBUILD) \
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
gem 'json'
require 'json'
require 'optparse'
samples = JSON.parse(STDIN.read)
samples['devices'].each do |key, devices|
next unless key =~ /^com\.apple\.CoreSimulator\.SimRuntime\.([^-]*)-(.*)$/
platform = $1
version = $2.gsub('-', '.')
devices.each do |device|
puts "#{version} #{platform} #{device["udid"]} #{device["name"]}"
end
end