Skip to content

Commit 559b796

Browse files
committed
Simplify CocoaPods linting
Closes #1066
1 parent 896d297 commit 559b796

File tree

6 files changed

+6
-153
lines changed

6 files changed

+6
-153
lines changed

Tests/CocoaPods/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

Tests/CocoaPods/Gemfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

Tests/CocoaPods/Gemfile.lock

Lines changed: 0 additions & 96 deletions
This file was deleted.

Tests/CocoaPods/Makefile

Lines changed: 0 additions & 15 deletions
This file was deleted.

Tests/CocoaPods/integration_test.rb

Lines changed: 0 additions & 35 deletions
This file was deleted.

run-tests.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ if [ -n "$BUILD_SCHEME" ]; then
77
make test BUILD_SCHEME="$BUILD_SCHEME"
88
fi
99
elif [ -n "$VALIDATOR_SUBSPEC" ]; then
10-
cd Tests/CocoaPods && make test
10+
if [ "$VALIDATOR_SUBSPEC" == "none" ]; then
11+
pod lib lint --no-subspecs
12+
else
13+
pod lib lint --subspec="${VALIDATOR_SUBSPEC}"
14+
fi
1115
elif [ -n "$CARTHAGE_PLATFORM" ]; then
1216
cd Tests/Carthage && make test CARTHAGE_PLATFORM="$CARTHAGE_PLATFORM"
1317
elif [ -n "${PACKAGE_MANAGER_COMMAND}" ]; then
14-
swift ${PACKAGE_MANAGER_COMMAND}
18+
swift "${PACKAGE_MANAGER_COMMAND}"
1519
fi

0 commit comments

Comments
 (0)