Skip to content

Commit

Permalink
Rename generate_version_info_for_swift as generate_package_swift.
Browse files Browse the repository at this point in the history
Partial #666

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
  • Loading branch information
rgoldberg committed Jan 3, 2025
1 parent ef3ea37 commit 55244d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

printf $'==> 🏗️ Building mas %s\n' "$(script/version)"

script/generate_version_info_for_swift
script/generate_package_swift

swift build --configuration release "${@}"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/zsh -Ndefgku
#
# script/generate_version_info_for_swift
# script/generate_package_swift
# mas
#
# Generates a file to provide the mas version to Swift code.
Expand All @@ -10,7 +10,7 @@

# Write version to Swift singleton
cat <<EOF >Sources/mas/Package.swift
/// Generated by \`script/generate_version_info_for_swift\`.
/// Generated by \`script/generate_package_swift\`.
enum Package {
static let version = "$(script/version)"
}
Expand Down
2 changes: 1 addition & 1 deletion script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

printf $'==> 🚨 Linting mas %s\n' "$(script/version)"

script/generate_version_info_for_swift
script/generate_package_swift

for linter in git markdownlint periphery shellcheck swift-format swiftformat swiftlint yamllint; do
if ! command -v "${linter}" >/dev/null; then
Expand Down
2 changes: 1 addition & 1 deletion script/test
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

printf $'==> ✅ Testing mas %s\n' "$(script/version)"

script/generate_version_info_for_swift
script/generate_package_swift

script -q /dev/null swift test "${@}" |
(grep -vxE $'Test Suite \'.+\' (?:started|passed) at \\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\.?\\r|Test Case \'-\\[.+\\]\' (?:started|passed \\(\\d+\\.\\d+ seconds\\))\\.\\r|\\t Executed \\d+ tests?, with 0 failures \\(0 unexpected\\) in \\d+\\.\\d+ \\(\\d+\\.\\d+\\) seconds\\r' || true)

0 comments on commit 55244d9

Please sign in to comment.