-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update CI to inlucde Windows. Only need to test against the lowest and the highest Postgres versions * Removing use of precompiled tasks and running postinstall script. Moved precompiled task to bin and set as a target * make sure ameba doesn't sneak in * ensure we use Path so they are shown correctly on Windows * these aren't being used * running PowerShell for Windows to do integration CLI tests * wrong use in CI * just trying to make this work now * Moving CI postgres setup from container to inline runner to hopefully work on Windows * move to env for setting shard overrides * don't build ameba on the spec run * specify the PG credentials for windows so it doesn't bork * Move windows CI to experimental for now. Windows will require at least 1.14 or later to run * removing windows CI for now until PG shard issues are resolved
- Loading branch information
Showing
9 changed files
with
66 additions
and
55 deletions.
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