Content-Length: 297525 | pFad | http://github.com/muxinc/mux-player-swift/commit/763abe3a993a9e92d8d48ce64c44cf406b5770ba

65 ci: buildkite pipeline (#59) · muxinc/mux-player-swift@763abe3 · GitHub
Skip to content

Commit

Permalink
ci: buildkite pipeline (#59)
Browse files Browse the repository at this point in the history
* ci: buildkite pipeline

* ci: remove GHA unit test steps

* ci: link against right sdk version
  • Loading branch information
andrewjl-mux authored Oct 2, 2024
1 parent 8cea0e0 commit 763abe3
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 22 deletions.
9 changes: 9 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
agents:
queue: "macOS-Monterey-12-4"

steps:
- command: "./scripts/run-unit-tests.sh MuxPlayerSwift"
label: ":xcode_simulator: Unit Test Pass"
- wait
- command: "./scripts/run-ui-tests.sh MuxPlayerSwiftExample"
label: ":xcode_simulator: Baseline Unit Test Pass"
16 changes: 0 additions & 16 deletions .github/workflows/run-tests.yml

This file was deleted.

42 changes: 42 additions & 0 deletions scripts/run-ui-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

readonly XCODE=$(xcodebuild -version | grep Xcode | cut -d " " -f2)

set -euo pipefail

if [ $# -ne 1 ]; then
echo "▸ Usage: $0 SCHEME"
exit 1
fi

readonly SCHEME="$1"

if ! command -v xcbeautify &> /dev/null
then
echo -e "\033[1;31m ERROR: xcbeautify could not be found please install it... \033[0m"
exit 1
fi

echo "▸ Using Xcode Version: ${XCODE}"

echo "▸ Available Xcode SDKs"

xcodebuild -showsdks

echo "▸ Resolve Package Dependencies"

xcodebuild -resolvePackageDependencies

cd Examples/MuxPlayerSwiftExample

echo "▸ Available Schemes"

xcodebuild -list -json

echo "▸ Test ${SCHEME}"

xcodebuild clean test \
-scheme $SCHEME \
-destination 'platform=iOS Simulator,OS=18.0,name=iPhone 16' \
-sdk iphonesimulator18.0 \
| xcbeautify
8 changes: 2 additions & 6 deletions scripts/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ then
exit 1
fi

echo "▸ Selecting Xcode 15"

sudo xcode-select -s /Applications/Xcode_15.0.app/Contents/Developer

echo "▸ Using Xcode Version: ${XCODE}"

echo "▸ Available Xcode SDKs"
Expand All @@ -39,6 +35,6 @@ echo "▸ Test ${SCHEME}"

xcodebuild clean test \
-scheme $SCHEME \
-destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15' \
-sdk iphonesimulator17.0 \
-destination 'platform=iOS Simulator,OS=18.0,name=iPhone 16' \
-sdk iphonesimulator18.0 \
| xcbeautify

0 comments on commit 763abe3

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/muxinc/mux-player-swift/commit/763abe3a993a9e92d8d48ce64c44cf406b5770ba

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy