Skip to content

Commit 0179290

Browse files
committed
Disable visionos just for standalone
1 parent 5ef20d1 commit 0179290

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

run-tests.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,21 @@ if [ -n "$BUILD_SCHEME" ]; then
88
fi
99
elif [ -n "$VALIDATOR_SUBSPEC" ]; then
1010
bundle install
11-
if [ "$VALIDATOR_SUBSPEC" == "none" ]; then
12-
bundle exec pod lib lint --no-subspecs --fail-fast
13-
else
14-
bundle exec pod lib lint --subspec="${VALIDATOR_SUBSPEC}" --fail-fast --platforms=macos,ios,tvos,watchos
15-
fi
11+
case "$VALIDATOR_SUBSPEC" in
12+
none)
13+
bundle exec pod lib lint --no-subspecs --fail-fast
14+
;;
15+
standalone)
16+
bundle exec pod lib lint --subspec="${VALIDATOR_SUBSPEC}" --fail-fast --platforms=macos,ios,tvos,watchos
17+
;;
18+
*)
19+
bundle exec pod lib lint --subspec="${VALIDATOR_SUBSPEC}" --fail-fast
20+
;;
21+
esac
1622
elif [ -n "$CARTHAGE_PLATFORM" ]; then
1723
cd Tests/Carthage && make test CARTHAGE_PLATFORM="$CARTHAGE_PLATFORM"
1824
elif [ -n "$SPM" ]; then
19-
cd Tests/SPM && swift ${SPM}
25+
cd Tests/SPM && swift "${SPM}"
2026
elif [ -n "${PACKAGE_MANAGER_COMMAND}" ]; then
21-
swift ${PACKAGE_MANAGER_COMMAND}
27+
swift "${PACKAGE_MANAGER_COMMAND}"
2228
fi

0 commit comments

Comments
 (0)