-
Notifications
You must be signed in to change notification settings - Fork 79
Fix build #185
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
Fix build #185
Changes from 2 commits
d549ab2
7750612
9260b45
de22960
30f5984
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[alias] | ||
xtask = "run -q --package xtask --" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ category = "Elasticsearch" | |
description = "Sets ELASTICSEARCH_URL environment variable if not already set for later tasks when free test suite used" | ||
private = true | ||
condition = { env = { "TEST_SUITE" = "free" }, env_not_set = ["ELASTICSEARCH_URL"] } | ||
env = { "ELASTICSEARCH_URL" = "http://localhost:9200" } | ||
env = { "ELASTICSEARCH_URL" = "http://elastic:changeme@localhost:9200" } | ||
|
||
[tasks.set-platinum-env] | ||
category = "Elasticsearch" | ||
|
@@ -25,6 +25,16 @@ private = true | |
condition = { env = { "TEST_SUITE" = "platinum" }, env_not_set = ["ELASTICSEARCH_URL"] } | ||
env = { "ELASTICSEARCH_URL" = "https://elastic:changeme@localhost:9200" } | ||
|
||
[tasks.download-specs] | ||
category = "Elasticsearch" | ||
description = '''Donwload Rest API specs and YAML tests''' | ||
private = true | ||
command = "cargo" | ||
# cargo-make insists on installing cargo-xtask and ignores .cargo/config.toml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @swallez you can disable it by adding: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the hint @sagiegurari! |
||
#args = ["xtask", "download-specs", "--url", "${ELASTICSEARCH_URL}"] | ||
args = ["run", "-q", "-p", "xtask", "--", "download-specs", "--url", "${ELASTICSEARCH_URL}"] | ||
dependencies = ["start-elasticsearch"] | ||
|
||
[tasks.run-yaml-test-runner] | ||
category = "Elasticsearch" | ||
description = ''' | ||
|
@@ -34,7 +44,7 @@ The commit to use is retrieved from the running Elasticsearch instance | |
private = true | ||
command = "cargo" | ||
args = ["run", "-p", "yaml_test_runner", "--", "-u", "${ELASTICSEARCH_URL}"] | ||
dependencies = ["start-elasticsearch"] | ||
dependencies = ["download-specs"] | ||
|
||
[tasks.test-yaml-test-runner] | ||
category = "Elasticsearch" | ||
|
@@ -64,6 +74,7 @@ category = "Elasticsearch" | |
private = true | ||
command = "cargo" | ||
args = ["run", "-p", "api_generator"] | ||
dependencies = ["download-specs"] | ||
|
||
[tasks.create-test-results-dir] | ||
category = "Elasticsearch" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ edition = "2018" | |
license = "Apache-2.0" | ||
|
||
[dependencies] | ||
anyhow = "1.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does anyhow have some clear advantages over There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Failure has been deprecated and now suggests |
||
array_tool = "1.0.3" | ||
dialoguer = "0.3.0" | ||
failure = "0.1.5" | ||
flate2 = "~1" | ||
globset = "~0.4" | ||
Inflector = "0.11.4" | ||
|
Uh oh!
There was an error while loading. Please reload this page.