Skip to content

Commit

Permalink
fix(periphery)[1]
Browse files Browse the repository at this point in the history
fixes the test (skips it) if the environment doesn't have a sufficient swift.
  • Loading branch information
jhheider committed Dec 27, 2024
1 parent f570613 commit 1924920
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions projects/github.com/peripheryapp/periphery/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:
# darwin:
# apple.com/xcode: '>=15.3'
# linux:
# swift.org: 6
# swift.org: '>=5.10'
script:
- run:
- make build_release
Expand All @@ -42,13 +42,21 @@ provides:
- bin/periphery

test:
# dependencies:
dependencies:
gnu.org/sed: '*'
crates.io/semverator: '*'
# darwin:
# apple.com/xcode: '>=15.3'
# linux:
# swift.org: 6
# swift.org: '>=5.10'
script:
- test "$(periphery version)" = {{version}}
- SWIFT_VERSION=$(swift --version 2>&1 | sed -n 's/.*Swift version \([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p')
- |
if ! semverator satisfies '>=5.10' $SWIFT_VERSION; then
echo 'skipping test: swift version too old'
exit 0
fi
- swift package init --name test --type executable
- swift build --disable-sandbox
- swift package --disable-sandbox describe --type json | tee manifest.json
Expand Down

0 comments on commit 1924920

Please sign in to comment.