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

Update test reports. #389

Merged
merged 7 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 10 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ parameters:
jobs:
build-and-test-sdk:
macos:
xcode: "15.3"
xcode: 15.4
steps:
- checkout
- run:
name: Install Rosetta translation environment on Apple Silicon Mac
command: softwareupdate --install-rosetta --agree-to-license
- run:
name: Install xcov
command: >
gem install xcov
- run:
name: Run Tests iOS 17
command: >
cd Tests/FrameworkTests/Resources && plutil -insert tokenization_vaultId -string ${tokenization_vaultId} MockedData.plist && plutil -insert vaultID -string ${vaultID} MockedData.plist && cd .. && cd .. && cd .. && xcodebuild test -project VGSCollectSDK.xcodeproj -scheme FrameworkTests -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' -enableCodeCoverage YES -testPlan FrameworkTests
cd Tests/FrameworkTests/Resources && plutil -insert tokenization_vaultId -string ${tokenization_vaultId} MockedData.plist && plutil -insert vaultID -string ${vaultID} MockedData.plist && cd .. && cd .. && cd .. && xcodebuild test -project VGSCollectSDK.xcodeproj -scheme FrameworkTests -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' -enableCodeCoverage YES -testPlan FrameworkTests
- run:
name: Calculate Test Coverage
command: >
Expand All @@ -36,27 +39,26 @@ jobs:
else
echo "Code coverage will only be pushed to compass on the main branch."
fi


build-and-ui-test-demo-app-ios-17-iphone15:
macos:
xcode: "15.3"
xcode: "15.4"
steps:
- checkout
- run:
name: Run UI Tests on iPhone 15 iOS 17.4
name: Run UI Tests on iPhone 15 iOS 17.5
command: >
cd demoapp &&
cd demoapp &&
plutil -insert vaultID -string ${vaultID} UITestsMockedData.plist &&
plutil -insert tokenization_vaultId -string ${tokenization_vaultId} UITestsMockedData.plist &&
cd .. &&
pod install &&
xcrun instruments -w "iPhone 15 (17.4) [" || true &&
xcrun instruments -w "iPhone 15 (17.5) [" || true &&
xcodebuild test -workspace demoapp.xcworkspace
-scheme demoappUITests
-sdk iphonesimulator
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4'
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5'

scan-sast-pr:
parameters:
Expand Down Expand Up @@ -118,4 +120,4 @@ workflows:
jobs:
- scan-sast-full:
context:
- security-tools
- security-tools
27 changes: 27 additions & 0 deletions compass.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: VGS Collect iOS
id: 'ari:cloud:compass:83673fa7-fd28-4f4a-9738-f584064570a7:component/db43f86d-85fe-42e1-954d-457f5a4082b8/276b046b-f44e-4d7b-9059-c8189c944c8f'
description: |-
iOS SDK that allows to collect end-user's PCI data and send to VGS Proxy.
configVersion: 1
typeId: LIBRARY
ownerId: 'ari:cloud:teams::team/61e34c25-3af2-4d60-bfed-39429d934c8b'
fields:
lifecycle: Active
tier: 1
links:
- name: null
type: REPOSITORY
url: 'https://github.com/verygoodsecurity/vgs-collect-ios'
- name: Public Docs
type: DOCUMENT
url: 'https://www.verygoodsecurity.com/docs/vgs-collect/ios-sdk'
- name: CircleCI
type: PROJECT
url: 'https://app.circleci.com/pipelines/github/verygoodsecurity/vgs-collect-ios'
- name: Jira
type: PROJECT
url: 'https://verygoodsecurity.atlassian.net/browse/DEVX'
relationships: {}
labels:
- 'language:swift'
customFields: null