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

Ios bitcode spm #228

Merged
merged 32 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0b46467
new libs
laves Oct 24, 2024
3a81826
add pkg
laves Oct 24, 2024
70b32bc
synatx
laves Oct 24, 2024
983ece8
fix
laves Oct 24, 2024
d4c0cfd
fix
laves Oct 24, 2024
ebe34f1
submodule format change
laves Oct 24, 2024
6626b2a
update pkg
laves Oct 24, 2024
8a99027
update
albho Nov 12, 2024
68db58d
update Package.swift
albho Nov 12, 2024
8076230
tests & demo working
albho Nov 13, 2024
d98d3b2
try fix - spelling & rm install pods step from actions
albho Nov 13, 2024
49fb0cb
try fix perf test appcenter
albho Nov 13, 2024
22f0556
try browserstack
albho Nov 13, 2024
487ba97
try fixes
albho Nov 13, 2024
e4f2b0c
try add packagingOptions
albho Nov 13, 2024
45e8fc9
try fix - move packagingOptions
albho Nov 13, 2024
f35a13b
try fix - hardcode perfthreshold, rm browserstack line from build.gradle
albho Nov 13, 2024
499a6f4
try fix - skip logic
albho Nov 13, 2024
40b9df4
try fix - make testContext public
albho Nov 13, 2024
1012d7a
fix android tests (#229)
albho Nov 14, 2024
777ae19
devices
albho Nov 14, 2024
535486d
fix devices
albho Nov 14, 2024
987a1fe
fix
albho Nov 14, 2024
b4676d1
fix
albho Nov 14, 2024
6d5872f
fix
albho Nov 14, 2024
be85650
revert PERFORMANCE_THRESHOLD_SEC check
albho Nov 14, 2024
3bc4af9
sed replace first occurence only
albho Nov 14, 2024
ad04009
try fix - handle parallel threads limit, replace first occurence of p…
albho Nov 14, 2024
818e2d8
test failures
albho Nov 14, 2024
000d365
revert intentional failures, try new handling of parallel threads lim…
albho Nov 14, 2024
3cd5d61
fix - handle parallel threads
albho Nov 14, 2024
e63e8fc
rm podfile and deintegrate
albho Nov 15, 2024
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
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
name: Android AppCenter Tests
name: Android BrowserStack Tests

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'binding/android/CobraTestApp/cobra-test-app/build.gradle'
- '.github/workflows/android-appcenter.yml'
- '.github/workflows/android-browserstack.yml'

pull_request:
branches: [ main, 'v[0-9]+.[0-9]+' ]
paths:
- 'binding/android/CobraTestApp/cobra-test-app/build.gradle'
- '.github/workflows/android-appcenter.yml'
- '.github/workflows/android-browserstack.yml'

defaults:
run:
working-directory: binding/android/CobraTestApp

jobs:
build:
name: Run Android Tests on AppCenter
name: Run Android Tests on BrowserStack
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Node.js LTS
uses: actions/setup-node@v3
- name: Installing Python
uses: actions/setup-python@v5
with:
node-version: lts/*

- name: Install AppCenter CLI
run: npm install -g appcenter-cli
python-version: '3.10'
- run:
pip3 install requests

- name: set up JDK 11
uses: actions/setup-java@v3
Expand Down Expand Up @@ -62,30 +61,29 @@ jobs:
- name: Build androidTest
run: ./gradlew assembleAndroidTest

- name: Run tests on AppCenter
run: appcenter test run espresso
--token ${{secrets.APPCENTERAPITOKEN}}
--app "Picovoice/Cobra-Android-Activity"
--devices "Picovoice/android-min-max"
--app-path cobra-test-app/build/outputs/apk/debug/cobra-test-app-debug.apk
--test-series "cobra-android"
--locale "en_US"
--build-dir cobra-test-app/build/outputs/apk/androidTest/debug
- name: Run tests on BrowserStack
run: python3 ../../../script/automation/browserstack.py
--type espresso
--username "${{secrets.BROWSERSTACK_USERNAME}}"
--access_key "${{secrets.BROWSERSTACK_ACCESS_KEY}}"
--project_name "Cobra-Android"
--devices "android-min-max"
--app_path "cobra-test-app/build/outputs/apk/debug/cobra-test-app-debug.apk"
--test_path "cobra-test-app/build/outputs/apk/androidTest/debug/cobra-test-app-debug-androidTest.apk"

build-integ:
name: Run Android Integration Tests on AppCenter
name: Run Android Integration Tests on BrowserStack
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Node.js LTS
uses: actions/setup-node@v3
- name: Installing Python
uses: actions/setup-python@v5
with:
node-version: lts/*

- name: Install AppCenter CLI
run: npm install -g appcenter-cli
python-version: '3.10'
- run:
pip3 install requests

- name: set up JDK 11
uses: actions/setup-java@v3
Expand Down Expand Up @@ -118,12 +116,12 @@ jobs:
- name: Build androidTest
run: ./gradlew assembleReleaseAndroidTest -DtestBuildType=integ

- name: Run tests on AppCenter
run: appcenter test run espresso
--token ${{secrets.APPCENTERAPITOKEN}}
--app "Picovoice/Cobra-Android-Activity"
--devices "Picovoice/android-min-max"
--app-path cobra-test-app/build/outputs/apk/release/cobra-test-app-release.apk
--test-series "cobra-android"
--locale "en_US"
--build-dir cobra-test-app/build/outputs/apk/androidTest/release
- name: Run tests on BrowserStack
run: python3 ../../../script/automation/browserstack.py
--type espresso
--username "${{secrets.BROWSERSTACK_USERNAME}}"
--access_key "${{secrets.BROWSERSTACK_ACCESS_KEY}}"
--project_name "Cobra-Android-Integration"
--devices "android-min-max"
--app_path "cobra-test-app/build/outputs/apk/release/cobra-test-app-release.apk"
--test_path "cobra-test-app/build/outputs/apk/androidTest/release/cobra-test-app-release-androidTest.apk"
37 changes: 17 additions & 20 deletions .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,25 @@ defaults:

jobs:
build:
name: Run Android Speed Tests on AppCenter
name: Run Android Speed Tests on BrowserStack
runs-on: ubuntu-latest

strategy:
matrix:
device: [single-android, 32bit-android]
device: [ android-perf ]
include:
- device: single-android
- device: android-perf
performanceThresholdSec: 0.005
- device: 32bit-android
performanceThresholdSec: 0.015

steps:
- uses: actions/checkout@v3

- name: Set up Node.js LTS
uses: actions/setup-node@v3
- name: Installing Python
uses: actions/setup-python@v5
with:
node-version: lts/*

- name: Install AppCenter CLI
run: npm install -g appcenter-cli
python-version: '3.10'
- run:
pip3 install requests

- name: set up JDK 11
uses: actions/setup-java@v3
Expand Down Expand Up @@ -79,12 +76,12 @@ jobs:
- name: Build androidTest
run: ./gradlew assembleAndroidTest -DtestBuildType=perf

- name: Run tests on AppCenter
run: appcenter test run espresso
--token ${{secrets.APPCENTERAPITOKEN}}
--app "Picovoice/Cobra-Android-Activity"
--devices "Picovoice/${{ matrix.device }}"
--app-path cobra-test-app/build/outputs/apk/debug/cobra-test-app-debug.apk
--test-series "cobra-android"
--locale "en_US"
--build-dir cobra-test-app/build/outputs/apk/androidTest/debug
- name: Run tests on BrowserStack
run: python3 ../../../script/automation/browserstack.py
--type espresso
--username "${{secrets.BROWSERSTACK_USERNAME}}"
--access_key "${{secrets.BROWSERSTACK_ACCESS_KEY}}"
--project_name "Cobra-Android-Performance"
--devices "${{ matrix.device }}"
--app_path "cobra-test-app/build/outputs/apk/debug/cobra-test-app-debug.apk"
--test_path "cobra-test-app/build/outputs/apk/androidTest/debug/cobra-test-app-debug-androidTest.apk"
68 changes: 0 additions & 68 deletions .github/workflows/ios-appcenter.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/ios-browserstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: iOS BrowserStack Tests

on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- '.github/workflows/ios-browserstack.yml'

pull_request:
branches: [ main, 'v[0-9]+.[0-9]+' ]
paths:
- '.github/workflows/ios-browserstack.yml'


defaults:
run:
working-directory: binding/ios/CobraAppTest

jobs:
build:
name: Run iOS Tests on BrowserStack
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Installing Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- run:
pip3 install requests

- name: Make build dir
run: mkdir ddp

- name: Inject AccessKey
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
CobraAppTestUITests/CobraAppTestUITests.swift

- name: XCode Build
run: xcrun xcodebuild build-for-testing
-configuration Debug
-project CobraAppTest.xcodeproj
-sdk iphoneos
-scheme CobraAppTest
-derivedDataPath ddp
CODE_SIGNING_ALLOWED=NO

- name: Generating ipa
run: cd ddp/Build/Products/Debug-iphoneos/ &&
mkdir Payload &&
cp -r CobraAppTest.app Payload &&
zip --symlinks -r CobraAppTest.ipa Payload &&
rm -r Payload

- name: Zipping Tests
run: cd ddp/Build/Products/Debug-iphoneos/ &&
zip --symlinks -r CobraAppTestUITests.zip CobraAppTestUITests-Runner.app

- name: Run tests on BrowserStack
run: python3 ../../../script/automation/browserstack.py
--type xcuitest
--username "${{secrets.BROWSERSTACK_USERNAME}}"
--access_key "${{secrets.BROWSERSTACK_ACCESS_KEY}}"
--project_name "Cobra-iOS"
--devices "ios-min-max"
--app_path "ddp/Build/Products/Debug-iphoneos/CobraAppTest.ipa"
--test_path "ddp/Build/Products/Debug-iphoneos/CobraAppTestUITests.zip"
8 changes: 1 addition & 7 deletions .github/workflows/ios-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Cocoapods
run: gem install cocoapods

- name: Run Cocoapods
run: pod install

- name: Build
run: xcrun xcodebuild build
-configuration Debug
-workspace CobraDemo.xcworkspace
-project CobraDemo.xcodeproj
-sdk iphoneos
-scheme CobraDemo
-derivedDataPath ddp
Expand Down
Loading
Loading