2020-12-18 20:41:31 +03:00
|
|
|
#!/bin/bash -e -o pipefail
|
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
|
|
|
|
|
|
echo "Install SwiftLint"
|
2022-02-09 15:52:28 +03:00
|
|
|
swiftlintUrl=$(get_github_package_download_url "realm/SwiftLint" "contains(\"portable_swiftlint.zip\")" "latest" "$API_PAT")
|
2022-01-28 21:08:32 +03:00
|
|
|
download_with_retries $swiftlintUrl "/tmp" "portable_swiftlint.zip"
|
|
|
|
|
unzip -q "/tmp/portable_swiftlint.zip" -d /usr/local/bin
|
|
|
|
|
# Remove the LICENSE file that comes along with the binary and the downloaded archive
|
|
|
|
|
rm -rf "/usr/local/bin/LICENSE"
|
|
|
|
|
rm -rf "/tmp/portable_swiftlint.zip"
|
2021-01-20 14:11:00 +07:00
|
|
|
|
2021-01-22 09:26:28 +03:00
|
|
|
invoke_tests "Linters" "SwiftLint"
|