-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Flix
committed
Aug 17, 2024
1 parent
e5301cf
commit 753ad89
Showing
3 changed files
with
113 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
extend = "Makefile.toml" | ||
|
||
[env] | ||
FEATURE_SELECTION = "--no-default-features --features r5,client" | ||
COMPOSE_PROFILES = "hapi-r5" | ||
|
||
|
||
[tasks.ensure-ci] | ||
description = "Ensure this is only run in CI. Use the normal Makefile for local use!" | ||
condition.env_false = ["CARGO_MAKE_CI"] | ||
script = [ | ||
"echo Not running in CI, please use the normal Makefile!", | ||
"exit 1" | ||
] | ||
|
||
|
||
[tasks.clippy-r4b-r5-no-builders] | ||
private = true | ||
install_crate = false | ||
command = "cargo" | ||
args = ["clippy", "-p", "fhir-sdk", "--all-targets", "--no-default-features", "--features", "r4b,r5", "--", "-D", "warnings"] | ||
|
||
[tasks.clippy-r4b-r5-client] | ||
private = true | ||
install_crate = false | ||
command = "cargo" | ||
args = ["clippy", "-p", "fhir-sdk", "--all-targets", "--no-default-features", "--features", "r4b,r5,client", "--", "-D", "warnings"] | ||
|
||
[tasks.clippy] | ||
description = "Runs clippy with all various feature sets." | ||
dependencies = [ | ||
"ensure-ci", | ||
"clippy-default", | ||
"clippy-stu3-no-builders", | ||
"clippy-stu3-client", | ||
"clippy-r4b-no-builders", | ||
"clippy-r4b-client", | ||
"clippy-r5-no-builders", | ||
"clippy-r5-client", | ||
"clippy-r4b-r5-no-builders", | ||
"clippy-r4b-r5-client", | ||
] | ||
|
||
|
||
[tasks.test-nextest] | ||
private = true | ||
command = "cargo" | ||
args = ["nextest", "run", "--workspace", "@@split(FEATURE_SELECTION, )"] | ||
|
||
[tasks.test-docs] | ||
private = true | ||
command = "cargo" | ||
args = ["test", "--workspace", "--doc", "@@split(FEATURE_SELECTION, )"] | ||
|
||
[tasks.test] | ||
description = "Runs all tests for the given feature set." | ||
dependencies = ["ensure-ci", "test-nextest", "test-docs"] | ||
|
||
|
||
[tasks.docker-ci-up] | ||
cwd = "./docker/" | ||
command = "docker" | ||
args = ["compose", "up", "-d"] | ||
|
||
[tasks.docker-ci-down] | ||
cwd = "./docker/" | ||
command = "docker" | ||
args = ["compose", "down", "-v"] |
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