Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Target Reconfiguration #1745

Merged
merged 30 commits into from
Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
174bbfe
Remove test targets from Package.swift
AnthonyMDev Mar 31, 2021
71529ca
Create ServerIntegrationTest Target and add LegacyInterceptorProvider…
AnthonyMDev Mar 31, 2021
70341b3
Refactor LegacyInterceptorProviderTests to unit tests and move them o…
AnthonyMDev Mar 31, 2021
2f64d59
Move StarWarsServer Tests into integration test target
AnthonyMDev Apr 1, 2021
8b0273b
Moved all server dependent tests out of unit tests. Consolidated unit…
AnthonyMDev Apr 6, 2021
311c019
Convert schemes to use test plans
AnthonyMDev Apr 6, 2021
11dfb36
Reconfigure CircleCI config
AnthonyMDev Apr 6, 2021
a85f8aa
minor fix for CircleCI config
AnthonyMDev Apr 6, 2021
bd8eec8
Fixes for broken test imports
AnthonyMDev Apr 6, 2021
b0612c2
Fixed test targets to use MacOS 10.15
AnthonyMDev Apr 6, 2021
d64fcdc
Fix SwiftScripts builds
AnthonyMDev Apr 6, 2021
3f4932e
Typo in CircleCI config
AnthonyMDev Apr 6, 2021
d4c1fbe
Minor fixes
AnthonyMDev Apr 13, 2021
38f0719
Fix circle CI
AnthonyMDev Apr 13, 2021
cb2f44c
Bump CircleCI to use Xcode 12.4 (from 12.1)
AnthonyMDev Apr 13, 2021
9205ada
Fix simulator versions for CircleCI
AnthonyMDev Apr 13, 2021
6026db8
Fix macOS SDK version for CircleCI
AnthonyMDev Apr 13, 2021
820c636
Attempt to fix macos sdk on circleCI
AnthonyMDev Apr 13, 2021
4a8bb50
Remove xcpretty for debugging CircleCI
AnthonyMDev Apr 13, 2021
5998d8e
More fixes for sdk versions
AnthonyMDev Apr 13, 2021
7b642f3
update tvOS version on circle
designatednerd Apr 13, 2021
9fe338c
Add log to try to figure out what on earth is going on with the SHASUM
designatednerd Apr 13, 2021
cbe9fab
Fix linker issues with ApolloCodegenTests
AnthonyMDev Apr 13, 2021
d690b21
Use an NSDIstributedLock to lock the CLI folder while downloading, ex…
AnthonyMDev Apr 14, 2021
90b1f04
Use “.lock” on path for NSDistributedLock
AnthonyMDev Apr 14, 2021
7d757e8
Atomically write SHASUM to extracted zip
AnthonyMDev Apr 14, 2021
b8e2604
Try logging
AnthonyMDev Apr 14, 2021
22a6e4c
Attempt changing permissions for extracted CLI folder
AnthonyMDev Apr 14, 2021
383b997
test not breaking lock
AnthonyMDev Apr 14, 2021
4766d33
Removed added logging and cleaned up lock code
AnthonyMDev Apr 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 13 additions & 86 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ version: 2.1
parameters:
xcode_version:
type: string
default: "12.1.0"
default: "12.4.0"
ios_current_version:
type: string
default: "14.1"
default: "14.4"
ios_previous_version:
type: string
default: "13.5"
default: "13.7"
ios_sdk:
type: string
default: "iphonesimulator14.1"
default: "iphonesimulator14.4"
macos_version: # The user-facing version string for macOS builds
type: string
default: "10.15"
macos_sdk: # The full SDK string to use for macOS builds
type: string
default: "macosx10.15"
default: "macosx11.1"
tvos_version: # The user-facing version string of tvOS builds
type: string
default: "14.0"
default: "14.3"
tvos_sdk:
type: string
default: "appletvsimulator14.0"
default: "appletvsimulator14.3"

commands:
common_test_steps:
Expand Down Expand Up @@ -63,7 +63,7 @@ commands:
command: xcodebuild clean build build-for-testing -project "Apollo.xcodeproj" -scheme "${CIRCLE_XCODE_SCHEME}" -sdk "${CIRCLE_XCODE_SDK}" -destination "${DESTINATION}" | xcpretty
name: Clean and build for testing
- run:
command: xcodebuild test-without-building -resultBundlePath ~/TestResults/ResultBundle.xcresult -project "Apollo.xcodeproj" -scheme "${CIRCLE_XCODE_SCHEME}" -sdk "${CIRCLE_XCODE_SDK}" -destination "${DESTINATION}" | xcpretty
command: xcodebuild test-without-building -resultBundlePath ~/TestResults/ResultBundle.xcresult -project "Apollo.xcodeproj" -scheme "${CIRCLE_XCODE_SCHEME}" -sdk "${CIRCLE_XCODE_SDK}" -destination "${DESTINATION}" -testPlan "${CIRCLE_XCODE_TEST_PLAN}" | xcpretty
name: Run tests
- save-xcodebuild-artifacts
- save_cache:
Expand Down Expand Up @@ -100,6 +100,7 @@ jobs:
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: Apollo
CIRCLE_XCODE_TEST_PLAN: Apollo-CITestPlan
CIRCLE_XCODE_SDK: << pipeline.parameters.macos_sdk >>
steps:
- common_test_steps
Expand All @@ -110,6 +111,7 @@ jobs:
environment:
DESTINATION: platform=iOS Simulator,OS=<< pipeline.parameters.ios_current_version >>,name=iPhone 11
CIRCLE_XCODE_SCHEME: Apollo
CIRCLE_XCODE_TEST_PLAN: Apollo-CITestPlan
CIRCLE_XCODE_SDK: << pipeline.parameters.ios_sdk >>
steps:
- common_test_steps
Expand All @@ -120,6 +122,7 @@ jobs:
environment:
DESTINATION: platform=iOS Simulator,OS=<< pipeline.parameters.ios_previous_version >>,name=iPhone 11
CIRCLE_XCODE_SCHEME: Apollo
CIRCLE_XCODE_TEST_PLAN: Apollo-CITestPlan
CIRCLE_XCODE_SDK: << pipeline.parameters.ios_sdk >>
steps:
- common_test_steps
Expand All @@ -130,76 +133,18 @@ jobs:
environment:
DESTINATION: platform=tvOS Simulator,OS=<< pipeline.parameters.tvos_version >>,name=Apple TV
CIRCLE_XCODE_SCHEME: Apollo
CIRCLE_XCODE_TEST_PLAN: Apollo-CITestPlan
CIRCLE_XCODE_SDK: << pipeline.parameters.tvos_sdk >>
steps:
- common_test_steps

SQLitemacOS_current:
macos:
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: ApolloSQLite
CIRCLE_XCODE_SDK: << pipeline.parameters.macos_sdk >>
steps:
- common_test_steps

SQLiteiOS_current:
macos:
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=<< pipeline.parameters.ios_current_version >>,name=iPhone 11
CIRCLE_XCODE_SCHEME: ApolloSQLite
CIRCLE_XCODE_SDK: << pipeline.parameters.ios_sdk >>
steps:
- common_test_steps

SQLiteiOS_previous:
macos:
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=<< pipeline.parameters.ios_previous_version >>,name=iPhone 11
CIRCLE_XCODE_SCHEME: ApolloSQLite
CIRCLE_XCODE_SDK: << pipeline.parameters.ios_sdk >>
steps:
- common_test_steps

WebSocketmacOS_current:
macos:
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: ApolloWebSocket
CIRCLE_XCODE_SDK: << pipeline.parameters.macos_sdk >>
steps:
- common_test_steps

WebSocketiOS_current:
macos:
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=<< pipeline.parameters.ios_current_version >>,name=iPhone 11
CIRCLE_XCODE_SCHEME: ApolloWebSocket
CIRCLE_XCODE_SDK: << pipeline.parameters.ios_sdk >>
steps:
- common_test_steps

WebSocketiOS_previous:
macos:
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=iOS Simulator,OS=<< pipeline.parameters.ios_previous_version >>,name=iPhone 11
CIRCLE_XCODE_SCHEME: ApolloWebSocket
CIRCLE_XCODE_SDK: << pipeline.parameters.ios_sdk >>
steps:
- common_test_steps

CodegenLibmacOS_current:
macos:
xcode: << pipeline.parameters.xcode_version >>
environment:
DESTINATION: platform=macOS,arch=x86_64
CIRCLE_XCODE_SCHEME: ApolloCodegenLib
CIRCLE_XCODE_TEST_PLAN: Apollo-CodegenTestPlan
CIRCLE_XCODE_SDK: << pipeline.parameters.macos_sdk >>
steps:
- common_test_steps
Expand Down Expand Up @@ -228,18 +173,6 @@ workflows:
name: Apollo iOS << pipeline.parameters.ios_previous_version >>
- tvOS_current:
name: Apollo tvOS << pipeline.parameters.tvos_version >>
- SQLitemacOS_current:
name: ApolloSQLite macOS << pipeline.parameters.macos_version >>
- SQLiteiOS_current:
name: ApolloSQLite iOS << pipeline.parameters.ios_current_version >>
- SQLiteiOS_previous:
name: ApolloSQLite iOS << pipeline.parameters.ios_previous_version >>
- WebSocketmacOS_current:
name: ApolloWebSocket macOS << pipeline.parameters.macos_version >>
- WebSocketiOS_current:
name: ApolloWebSocket iOS << pipeline.parameters.ios_current_version >>
- WebSocketiOS_previous:
name: ApolloWebSocket iOS << pipeline.parameters.ios_previous_version >>
- CodegenLibmacOS_current:
name: Swift Code Generation
- CocoaPodsTrunk:
Expand All @@ -249,12 +182,6 @@ workflows:
- Apollo iOS << pipeline.parameters.ios_current_version >>
- Apollo iOS << pipeline.parameters.ios_previous_version >>
- Apollo tvOS << pipeline.parameters.tvos_version >>
- ApolloSQLite macOS << pipeline.parameters.macos_version >>
- ApolloSQLite iOS << pipeline.parameters.ios_current_version >>
- ApolloSQLite iOS << pipeline.parameters.ios_previous_version >>
- ApolloWebSocket macOS << pipeline.parameters.macos_version >>
- ApolloWebSocket iOS << pipeline.parameters.ios_current_version >>
- ApolloWebSocket iOS << pipeline.parameters.ios_previous_version >>
- Swift Code Generation
filters:
# Only build semver tags
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ scripts/apollo.tar.gz
SwiftScripts/ApolloCLI
Tests/ApolloCodegenTests/scripts
Tests/ApolloCodegenTests/scripts directory
SwiftScripts/.build-**
Loading