Commit graph

178 commits

Author SHA1 Message Date
Ross Goldberg
f08f0a37d7
Improve bootstrap.
Partial #580

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-17 21:39:56 -04:00
Ross Goldberg
f06fc7bb75
Use trash -F instead of trash to facilitate better undelete.
Resolve #576

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-15 08:13:54 -04:00
Ross Goldberg
d413d8cfa1
Move MasKit module to mas.
Move MasKitTests module to masTests.

Rename MasKit enum as Mas.

Upgrade swift-tools-version from 5.3 to 5.6.1.

swift-tools-version 5.5+ is necessary to allow test code to import executable target code,
to allow MasKit library code to be moved into the mas executable.

Upgrade to swift-tools-version to 5.6.1 instead of to 5.5 because they support all the same macOS versions.

Standardize comments.

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-14 03:44:03 -04:00
Ross Goldberg
466ea67194
Improve scripts: bootstrap, build, format, lint, test & version.
Allow them to be run from any directory.

Call version from lint & test to create Package.swift with version info.

Fail when accessing unset variables.

Improve variable names.

Fix lint issues.

Improve lint & format scripts.

Don't require user input to continue linting.

Much cleaner lint output.

Reorder lint output.

Get swift-format from Brewfile instead of from Package.swift:

 - Speeds up linting.
 - Properly models dependency (not a code dependency).
 - swift-format depends on an old version of swift-argument-parser. Will refactor to use SAP soon.

Include some improvements from 1.8.7 PR.

Other scripts need improvement, too.

Resolve #545

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-05 20:33:45 -04:00
Ben Chatelain
83cf1916e7 👽 Update path to release artifacts 2022-02-03 19:56:53 -07:00
Chris Araman
dac61a3d4f 🚧 Remove Danger Ruby gem 2021-11-29 17:03:03 -08:00
Chris Araman
425b935c2c 🚧 Remove use of xcpretty 2021-11-29 17:03:03 -08:00
Chris Araman
b073c740ed 🧹 Lint 2021-11-11 18:09:51 -08:00
Chris Araman
4295d9c998 🍼 Check style 2021-11-11 18:09:51 -08:00
Chris Araman
766c152e21 🍼 Audit formula before bottling 2021-11-11 18:09:51 -08:00
Chris Araman
3e771a289c 🍼 Use the custom tap formula when bottling for the custom tap 2021-11-11 18:09:51 -08:00
Chris Araman
8a939a821f
🍺 Include Monterey in bottle builds 2021-10-25 16:59:01 -07:00
Ben Chatelain
ba45912f73 🔊 Fail bottle script earlier when formula hasn't been updated 2021-09-08 18:29:41 -07:00
Chris Araman
b87a998f11 🧹 Move Periphery configuration 2021-06-08 19:49:02 -07:00
Chris Araman
726b1868f2 🧹 Restore shellcheck (0.7.2) 2021-06-08 19:49:02 -07:00
Chris Araman
e7fbcffbab 🧹 Don't modify shell scripts with script/lint 2021-06-04 15:58:30 -07:00
Chris Araman
15ffe067a0
🚨 Fail CI task if tests fail 2021-05-12 12:16:25 -07:00
Chris Araman
0b8acab235 🧹 Lint with periphery 2021-05-08 20:14:18 -07:00
Chris Araman
4848f422d6 🧹 Match swift-format to compiler version
Fixes #364.
2021-05-08 20:14:18 -07:00
Chris Araman
9dfa2f8b57 🍺 Publish bottles to GitHub Releases 2021-05-08 19:53:11 -07:00
Chris Araman
10b92cc639
Clean with SPM 2021-05-07 11:38:36 -07:00
Chris Araman
c177fa79a1
🛠 Make --universal a build option 2021-05-07 11:33:39 -07:00
Chris Araman
3e88d28622
🗑 Remove mas.zip archive script 2021-05-07 11:32:32 -07:00
Ben Chatelain
e1dbc653e5 🏝 Build args for brew sandbox
Fixes #363
2021-05-06 22:19:11 -06:00
Ben Chatelain
bc7c332515 👽 Update core formula path
brew 3
2021-05-06 22:17:57 -06:00
Ben Chatelain
cec804279e 📜 Conditionally install swiftlint when not running on CI 2021-05-06 21:03:17 -06:00
Chris Araman
2bc19e3b9b
🖊 Lint markdown 2021-05-03 13:42:18 -07:00
Chris Araman
5a2d7717c9
♻️ Remove generated source file 2021-04-28 22:56:34 -07:00
Chris Araman
688900f4e8
🤖 Determine version from latest git tag 2021-04-28 22:51:33 -07:00
Chris Araman
a3e32656bc
🗜 Update mas.pkg build 2021-04-28 22:28:29 -07:00
Chris Araman
a45487ec9c
📜 Remove unused release script 2021-04-28 19:14:19 -07:00
Chris Araman
424db2ed3c
🧹 Update paths to sources 2021-04-28 19:14:18 -07:00
Chris Araman
c93694017f
📜 Build Swift Package from scripts 2021-04-28 19:14:15 -07:00
Chris Araman
5df17f7823
📦 Embed version string as Swift code 2021-04-28 12:22:08 -07:00
Chris Araman
7a7f36ad9b
📦 Declare mas as a Swift Package 2021-04-26 21:19:30 -07:00
Chris Araman
d287c5cfd6
🚧 Move sources to typical SPM locations 2021-04-26 21:04:37 -07:00
Chris Araman
969f4e468c
📦 Declare Swift Package dependencies 2021-04-26 21:04:36 -07:00
Ben Chatelain
97ca112a6f 🚨 Fix script format & lint issues 2021-03-28 22:09:52 -07:00
Ben Chatelain
0667919cfa 📜 Add OS version detection
Only big_sur and catalina allowed
2021-03-28 21:48:10 -07:00
Ben Chatelain
799c18e327 👌🏻 Use macOS uname syntax 2021-03-28 21:13:59 -07:00
Ben Chatelain
3d54be18ad 📜 Use uname to determine CPU 2021-03-28 20:05:00 -07:00
Ben Chatelain
eb76a2efa5 💪🏼 Add arm64_big_sur to bottle script
Fixes #333
2021-03-28 19:44:25 -07:00
Chris Araman
9add9a7e0e
🍺 Assume swiftlint has been installed 2021-03-28 18:05:12 -07:00
Chris Araman
5df8db3fd6
🧹 Separate format from lint 2021-03-28 17:16:37 -07:00
Chris Araman
af944e8caf
🧹 Emit a warning when a linter is not installed 2021-03-28 14:21:37 -07:00
Chris Araman
d5f262cb9d
🧹 Run script/lint when building from Xcode 2021-03-28 14:21:37 -07:00
Chris Araman
3bc25449b0
🧹 Lint with swiftformat 2021-03-28 14:21:37 -07:00
Chris Araman
df9730d65f
🧹 Lint with swift-format 2021-03-28 14:21:14 -07:00
Chris Araman
09d2e6d43d
🧹 Correct swiftlint violations automatically 2021-03-28 14:15:17 -07:00
Chris Araman
fc33738f0f
🧹 Use git diff --check as another linter 2021-03-28 14:15:17 -07:00