-
Notifications
You must be signed in to change notification settings - Fork 64
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
Windows support #1069
Merged
Merged
Windows support #1069
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0131bef
update CI to inlucde Windows. Only need to test against the lowest an…
jwoertink cb238f9
Removing use of precompiled tasks and running postinstall script. Mov…
jwoertink 4a0e22c
make sure ameba doesn't sneak in
jwoertink 36cbcd2
ensure we use Path so they are shown correctly on Windows
jwoertink 2b04239
these aren't being used
jwoertink ffdd473
running PowerShell for Windows to do integration CLI tests
jwoertink bff18a6
wrong use in CI
jwoertink bf4fa55
just trying to make this work now
jwoertink 7d37f16
Moving CI postgres setup from container to inline runner to hopefully…
jwoertink 7fcc36d
move to env for setting shard overrides
jwoertink 782af18
don't build ameba on the spec run
jwoertink 8360acd
specify the PG credentials for windows so it doesn't bork
jwoertink 6a193c1
Move windows CI to experimental for now. Windows will require at leas…
jwoertink cbf5c89
removing windows CI for now until PG shard issues are resolved
jwoertink File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/docs/ | ||
/lib/ | ||
/bin/* | ||
/bin/ameba | ||
/bin/ameba.cr | ||
/.shards/ | ||
/tmp | ||
/config/*.local.cr | ||
|
2 changes: 1 addition & 1 deletion
2
src/precompiled_tasks/gen/migration.cr → bin/lucky.gen.migration.cr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
require "../../avram" | ||
require "avram" | ||
|
||
Gen::Migration.new.print_help_or_call(ARGV) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Exit if any subcommand fails | ||
$ErrorActionPreferences = "Stop" | ||
|
||
Write-Host "\nRunning tasks\n\n" | ||
|
||
crystal tasks.cr db.drop | ||
crystal tasks.cr db.create | ||
crystal tasks.cr db.migrate | ||
|
||
# If there were no errors, continue the test | ||
if ($?) { | ||
# Integration test various tasks | ||
Write-Host "\nRolling back to 20180802180356\n" | ||
crystal tasks.cr db.rollback_to 20180802180356 | ||
crystal tasks.cr db.migrations.status | ||
Write-Host "\nRolling back remainder\n" | ||
crystal tasks.cr db.rollback_all | ||
crystal tasks.cr db.migrate.one | ||
crystal tasks.cr db.migrate | ||
crystal tasks.cr db.reset | ||
crystal tasks.cr db.drop | ||
crystal tasks.cr db.setup | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,8 @@ crystal: ">= 1.10.0" | |
|
||
license: MIT | ||
|
||
targets: | ||
lucky.gen.migration: | ||
main: src/precompiled_tasks/gen/migration.cr | ||
executables: | ||
- lucky.gen.migration.cr | ||
|
||
authors: | ||
- Paul Smith <[email protected]> | ||
|
@@ -51,6 +50,3 @@ development_dependencies: | |
lucky: | ||
github: luckyframework/lucky | ||
version: ">= 1.0.0" | ||
|
||
scripts: | ||
postinstall: BUILD_WITHOUT_DEVELOPMENT=true script/precompile_tasks |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
No need to check every single version. I think just checking the lowest and the highest versions is fine and assume everything in the middle "just works".