-
Notifications
You must be signed in to change notification settings - Fork 67
SWIFT-134 Write a release script #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @$(call check_for_gem,xcodeproj) | ||
| ruby Tests/Scripts/add_json_files.rb | ||
|
|
||
| sourcery: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since sourcery is now also used to update MongoSwift.swift I renamed this to be more specific.
| install: ./Tests/Scripts/install_dependencies.sh sourcery | ||
| before_script: skip | ||
| script: ${PWD}/sourcery/bin/sourcery; git diff --exit-code Tests/LinuxMain.swift | ||
| script: export sourcery=${PWD}/sourcery/bin/sourcery; make linuxmain; git diff --exit-code Tests/LinuxMain.swift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export needed so makefile can find sourcery
|
Once we have consensus on this I can add a similar script to the mobile repo. |
| @@ -0,0 +1,30 @@ | |||
| // swiftlint:disable:previous vertical_whitespace | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two thoughts:
- could we just have a
MongoSwiftVersion.swift(orVersion.swift) that adds aprivate static let versionStringto the right namespace. It seems like there is other stuff going on in this file that we don't want to be templated - somewhat crazier, but could be nice, can you encode the version into the
Package.swiftand dynamically read it from that file at runtime?Package.swiftwill always be there, in a known fixed location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with the first!
| rm ${PWD}/MongoSwift.podspec | ||
|
|
||
| # go to GitHub to publish release notes | ||
| open "https://github.com/mongodb/mongo-swift-driver/releases/tag/v${1}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Adds a release script. For obvious reasons, I have not actually executed the full script in our repo and cannot say with certainty that this will work in its entirety, but I have tested most of it in pieces.