-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile-light-ci.toml
69 lines (55 loc) · 1.71 KB
/
Makefile-light-ci.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
extend = "Makefile.toml"
[env]
FEATURE_SELECTION = "--no-default-features --features r4b,client,docs"
COMPOSE_PROFILES = "hapi-r4b,medplum-r4"
[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-default]
private = false
install_crate = false
command = "cargo"
args = ["clippy", "-p", "fhir-sdk", "--all-targets", "--", "-D", "warnings"]
[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", "--exclude", "generate", "@@split(FEATURE_SELECTION, )"]
[tasks.test]
description = "Runs all tests for the given feature set."
dependencies = ["ensure-ci", "test-nextest"]
[tasks.docker-ci-up]
cwd = "./docker/"
command = "docker"
args = ["compose", "up", "-d"]
[tasks.docker-ci-down]
cwd = "./docker/"
command = "docker"
args = ["compose", "down", "-v"]