mirror of
https://github.com/ivabus/pantry
synced 2024-11-15 04:55:08 +03:00
612cd6abbb
closes #6110
33 lines
805 B
YAML
33 lines
805 B
YAML
distributable:
|
|
url: https://github.com/realm/SwiftLint/archive/refs/tags/{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: realm/SwiftLint/releases/tags
|
|
|
|
platforms:
|
|
- darwin
|
|
|
|
provides:
|
|
- bin/swiftlint
|
|
|
|
warnings:
|
|
- vendored
|
|
|
|
build:
|
|
working-directory: vendor
|
|
script: |
|
|
curl -Lfo swiftlint.zip "https://github.com/realm/SwiftLint/releases/download/{{version}}/portable_swiftlint.zip"
|
|
unzip -o swiftlint.zip
|
|
mkdir -p "{{prefix}}/bin"
|
|
mv swiftlint "{{prefix}}/bin"
|
|
|
|
test:
|
|
# MacOS 11 doesn't have the necessary library
|
|
- run: |
|
|
if ! test -f /usr/lib/swift/libswift_Concurrency.dylib; then
|
|
echo "warning: skipping tests because libswift_Concurrency.dylib is missing"
|
|
exit 0
|
|
fi
|
|
if: darwin
|
|
- test "$(swiftlint --version)" = {{version}}
|