-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·25 lines (25 loc) · 799 Bytes
/
run-tests.sh
File metadata and controls
executable file
·25 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -ev
if [ -n "$BUILD_SCHEME" ]; then
if [ -n "$IOS_SIMULATOR" ]; then
make test BUILD_SCHEME="$BUILD_SCHEME" IOS_SIMULATOR="$IOS_SIMULATOR" IOS_VERSION="$IOS_VERSION"
else
make test BUILD_SCHEME="$BUILD_SCHEME"
fi
elif [ -n "$VALIDATOR_SUBSPEC" ]; then
bundle install
case "$VALIDATOR_SUBSPEC" in
none)
bundle exec pod lib lint --no-subspecs --fail-fast
;;
*)
bundle exec pod lib lint --subspec="${VALIDATOR_SUBSPEC}" --fail-fast
;;
esac
elif [ -n "$CARTHAGE_PLATFORM" ]; then
cd Tests/Carthage && make test CARTHAGE_PLATFORM="$CARTHAGE_PLATFORM"
elif [ -n "$SPM" ]; then
cd Tests/SPM && swift "${SPM}"
elif [ -n "${PACKAGE_MANAGER_COMMAND}" ]; then
swift ${PACKAGE_MANAGER_COMMAND}
fi