-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 928 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 928 Bytes
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
check:
cargo fmt -- --check
cargo check
deps:
cargo machete --fix || true
run:
cargo run
test:
cargo test -- --nocapture
release:
cargo build --release
xml_to_rs:
for mod in virsh_domcapabilities capabilities supported_features; do \
rm -rf ./src/de/types/$$mod.rs; \
xml_schema_generator -d "Serialize, Deserialize, Debug, PartialEq, Clone, Default" ./testdata/$$mod.xml ./src/de/types/$$mod.rs; \
done
tools:
cargo install -f xml_schema_generator --features="env_logger"
kind:
kind create cluster --name dev --config=./kind.yaml
purge:
kind delete cluster --name dev
kubevirt:
VERSION=$$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt) ;\
kubectl create -f "https://github.com/kubevirt/kubevirt/releases/download/$${VERSION}/kubevirt-operator.yaml" ;\
kubectl create -f "https://github.com/kubevirt/kubevirt/releases/download/$${VERSION}/kubevirt-cr.yaml"