mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-17 20:08:31 +00:00
Merge branch 'tests/macmini-m1-3' into 'master'
Test to re-enable CI on new machine See merge request BC/public/linphone-iphone!394
This commit is contained in:
commit
ba3886ded7
1 changed files with 27 additions and 84 deletions
111
.gitlab-ci.yml
111
.gitlab-ci.yml
|
|
@ -1,99 +1,42 @@
|
||||||
# COMMENTED FOR NOW - TODO : ENABLE CALLUI TESTS IN THE CI
|
|
||||||
# USE ONLY THE release/5.1 VERSION OF THIS FILE FOR NOW
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#variables:
|
|
||||||
# workspace: linphone.xcworkspace
|
|
||||||
# scheme: linphone
|
|
||||||
# destination: name=iPhone 13 Pro
|
|
||||||
# testResult_path: derivedData/Logs/Test
|
|
||||||
|
|
||||||
#stages:
|
|
||||||
# - Build
|
|
||||||
# - UITests
|
|
||||||
|
|
||||||
#before_script:
|
|
||||||
# - pod install
|
|
||||||
# - pwd
|
|
||||||
# - sed 's/fileprivate let tableView =/public let tableView =/g' ./Pods/DropDown/DropDown/src/DropDown.swift > tmp.swift && mv -f tmp.swift ./Pods/DropDown/DropDown/src/DropDown.swift
|
|
||||||
|
|
||||||
#Compile & Build:
|
|
||||||
# stage: Build
|
|
||||||
# tags: ["macmini-m1-xcode13"]
|
|
||||||
# before_script:
|
|
||||||
# - pod install --repo-update
|
|
||||||
# - pwd
|
|
||||||
# - sed 's/fileprivate let tableView =/public let tableView =/g' ./Pods/DropDown/DropDown/src/DropDown.swift > tmp.swift && mv -f tmp.swift ./Pods/DropDown/DropDown/src/DropDown.swift
|
|
||||||
# - xcrun simctl shutdown "$destination" && xcrun simctl erase "$destination"
|
|
||||||
# script:
|
|
||||||
# - xcodebuild -workspace $workspace -scheme $scheme -UseModernBuildSystem=YES -destination "$destination" -derivedDataPath derivedData
|
|
||||||
# after_script: []
|
|
||||||
#
|
|
||||||
# stage: build
|
|
||||||
# tags: [ "macos-xcode13" ]
|
|
||||||
|
|
||||||
# script:
|
|
||||||
# - pod install --repo-update
|
|
||||||
# - pwd
|
|
||||||
# - sed 's/fileprivate let tableView =/public let tableView =/g' ./Pods/DropDown/DropDown/src/DropDown.swift > tmp.swift && mv -f tmp.swift ./Pods/DropDown/DropDown/src/DropDown.swift
|
|
||||||
# - xcodebuild archive -scheme $archive_scheme -archivePath ./$archive_path -configuration Release -workspace ./linphone.xcworkspace -UseModernBuildSystem=YES -destination 'generic/platform=iOS'
|
|
||||||
# - xcodebuild -exportArchive -archivePath ./$archive_path -exportPath ./$export_path -exportOptionsPlist ./$export_options_plist -allowProvisioningUpdates -UseModernBuildSystem=YES -destination 'generic/platform=iOS'
|
|
||||||
|
|
||||||
# artifacts:
|
|
||||||
# paths:
|
|
||||||
# - derivedData/Build
|
|
||||||
# when: always
|
|
||||||
# expire_in: 2 hour
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#after_script:
|
|
||||||
# - ${TRAINER_EXE} -p $testResult_path/*.xcresult -o $testResult_path/
|
|
||||||
# - ${XCPARSE_EXE} attachments $testResult_path/*.xcresult results --uti public.image
|
|
||||||
# - mv $testResult_path/*.xcresult results && mv derivedData/logs.txt results
|
|
||||||
|
|
||||||
#Call Views:
|
|
||||||
# stage: UITests
|
|
||||||
# tags: ["macmini-m1-xcode13"]
|
|
||||||
# dependencies: ["Compile & Build"]
|
|
||||||
# script:
|
|
||||||
# - xcodebuild test -workspace $workspace -scheme $scheme -sdk iphonesimulator -destination "$destination" -UseModernBuildSystem=YES -testPlan Default -derivedDataPath derivedData | tee derivedData/logs.txt
|
|
||||||
|
|
||||||
# artifacts:
|
|
||||||
# paths:
|
|
||||||
# - results/*
|
|
||||||
# when: always
|
|
||||||
# reports:
|
|
||||||
# junit:
|
|
||||||
# - $testResult_path/*.xml
|
|
||||||
# expire_in: 4 week
|
|
||||||
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
archive_scheme: Linphone
|
archive_scheme: Linphone
|
||||||
archive_path: Linphone.xcarchive
|
archive_path: Linphone.xcarchive
|
||||||
export_path: Linphone-adhoc-ipa
|
export_path: Linphone
|
||||||
export_options_plist: Linphone-adhoc.plist
|
|
||||||
|
|
||||||
job-ios:
|
stages:
|
||||||
|
- build
|
||||||
|
- export
|
||||||
|
|
||||||
|
build-ios:
|
||||||
stage: build
|
stage: build
|
||||||
tags: [ "macos-xcode15" ]
|
tags: [ "macmini-m1-3-xcode16" ]
|
||||||
allow_failure: true
|
|
||||||
script:
|
script:
|
||||||
# - pod install --repo-update
|
# We assume here that all distribution/development certificates, privates keys, and provisioning profiles are set up on the build machine
|
||||||
- exit 1
|
- xcodebuild archive -scheme $archive_scheme -archivePath ./$archive_path -configuration Release -workspace ./LinphoneApp.xcodeproj/project.xcworkspace -UseModernBuildSystem=YES -destination 'generic/platform=iOS' -allowProvisioningUpdates -authenticationKeyPath $AUTHENTICATION_KEY_PATH -authenticationKeyID $AUTHENTICATION_KEY_ID -authenticationKeyIssuerID $AUTHENTICATION_KEY_ISSUER_ID DEVELOPEMENT_TEAM=$DEVELOPEMENT_TEAM PROVISIONING_PROFILE="Automatic"
|
||||||
# - sed 's/fileprivate let tableView =/public let tableView =/g' ./Pods/DropDown/DropDown/src/DropDown.swift > tmp.swift && mv -f tmp.swift ./Pods/DropDown/DropDown/src/DropDown.swift
|
- ls -lah
|
||||||
# - xcodebuild archive -scheme $archive_scheme -archivePath ./$archive_path -configuration Release -workspace ./Linphone.xcworkspace -UseModernBuildSystem=YES -destination 'generic/platform=iOS'
|
|
||||||
# - xcodebuild -exportArchive -archivePath ./$archive_path -exportPath ./$export_path -exportOptionsPlist ./$export_options_plist -allowProvisioningUpdates -UseModernBuildSystem=YES -destination 'generic/platform=iOS'
|
|
||||||
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $archive_path
|
- $archive_path
|
||||||
|
when: always
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
|
.export-ios:
|
||||||
|
stage: export
|
||||||
|
tags: [ "macmini-m1-3-xcode16" ]
|
||||||
|
script:
|
||||||
|
- xcodebuild -exportArchive -archivePath ./$archive_path -exportPath ./$export_path -exportOptionsPlist $export_options_plist -allowProvisioningUpdates -UseModernBuildSystem=YES -destination 'generic/platform=iOS' -authenticationKeyPath $AUTHENTICATION_KEY_PATH -authenticationKeyID $AUTHENTICATION_KEY_ID -authenticationKeyIssuerID $AUTHENTICATION_KEY_ISSUER_ID
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
- $export_path
|
- $export_path
|
||||||
when: always
|
when: always
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
export-ios-adhoc:
|
||||||
|
extends: .export-ios
|
||||||
|
variables:
|
||||||
|
export_options_plist: $EXPORT_ADHOC_PLIST_PATH
|
||||||
|
|
||||||
|
export-ios-appstore-artifact:
|
||||||
|
extends: .export-ios
|
||||||
|
variables:
|
||||||
|
export_options_plist: $EXPORT_STORE_PLIST_PATH
|
||||||
Loading…
Add table
Reference in a new issue