Skip to content

Commit

Permalink
Do not run build-time SwiftLint when building in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Jan 23, 2025
1 parent 1b5d37d commit db78e12
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Scripts/BuildPhases/SwiftLint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/bin/bash -e

# Do not run in CI environments.
# Our CI has its own static linter.
# As of 2025/01, this should save some 20-40s per build.
if [ -n "${CI+x}" ]; then
echo 'CI environment detected. Skipping SwiftLint build phase in favor of dedicated CI process.'
exit 0
fi

rake lint

0 comments on commit db78e12

Please sign in to comment.