-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (25 loc) · 843 Bytes
/
Makefile
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
.PHONY: clean testgen check
## data/w3cdata: creates the data directory by pulling testdata from dockerhub
data/w3cdata:
rm -rf data && \
mkdir -p data && \
docker run --network=host \
--user "$(id -u):$(id -g)" \
-v ${PWD}:/volume/target \
--rm -t matthewjamesbriggs/xmltestdata:v0.2.0 \
/bin/sh -c 'cp -a /data/xmlconf /volume/target/data && cp -a /data/xmlschema /volume/target/data' && \
touch data/w3cdata
## testdata: pulls testdata from dockerhub into the gitignored data directory
testdata: data/w3cdata
testgen: testdata
${PWD}/testgen/testgen.sh
clean:
rm -rf data && \
rm -rf target
check:
cargo clippy -- --version && cargo fmt -- --version && \
cargo fmt -- --check && \
cargo clippy --locked -- -D warnings && \
cargo clippy --tests --locked -- -D warnings && \
cargo test && \
cargo build --lib