Content-Length: 3381 | pFad | http://github.com/muxinc/mux-player-swift/commit/763abe3a993a9e92d8d48ce64c44cf406b5770ba.patch
98
From 763abe3a993a9e92d8d48ce64c44cf406b5770ba Mon Sep 17 00:00:00 2001
From: AJ Lauer Barinov
Date: Wed, 2 Oct 2024 11:00:37 -0700
Subject: [PATCH] ci: buildkite pipeline (#59)
* ci: buildkite pipeline
* ci: remove GHA unit test steps
* ci: link against right sdk version
---
.buildkite/pipeline.yml | 9 +++++++
.github/workflows/run-tests.yml | 16 -------------
scripts/run-ui-tests.sh | 42 +++++++++++++++++++++++++++++++++
scripts/run-unit-tests.sh | 8 ++-----
4 files changed, 53 insertions(+), 22 deletions(-)
create mode 100644 .buildkite/pipeline.yml
delete mode 100644 .github/workflows/run-tests.yml
create mode 100755 scripts/run-ui-tests.sh
diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml
new file mode 100644
index 00000000..95477253
--- /dev/null
+++ b/.buildkite/pipeline.yml
@@ -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"
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
deleted file mode 100644
index 50c89f97..00000000
--- a/.github/workflows/run-tests.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-name: Run Tests
-
-on:
- push:
-
-jobs:
- unit-tests:
- name: Run Unit Tests
- runs-on: macos-13
- steps:
- - name: Install xcbeautify
- run: brew install xcbeautify
- - name: Checkout
- uses: actions/checkout@v3
- - name: Run Tests
- run: "scripts/run-unit-tests.sh MuxPlayerSwift"
diff --git a/scripts/run-ui-tests.sh b/scripts/run-ui-tests.sh
new file mode 100755
index 00000000..b24658ca
--- /dev/null
+++ b/scripts/run-ui-tests.sh
@@ -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
diff --git a/scripts/run-unit-tests.sh b/scripts/run-unit-tests.sh
index e474b425..dab49bdb 100755
--- a/scripts/run-unit-tests.sh
+++ b/scripts/run-unit-tests.sh
@@ -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"
@@ -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
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/muxinc/mux-player-swift/commit/763abe3a993a9e92d8d48ce64c44cf406b5770ba.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy