forked from European-XFEL/EXtra-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 666 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 666 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
# makefile used for testing
install:
python3 -m pip install .[test]
dev-install:
python3 -m pip install -U -e .[test]
test:
python3 -m pytest -v --nbval-lax --cov=extra_data
docker-build:
@# build docker image
docker build -t image .
docker-test:
@# uses normal targets, but executes in container
@# use matplotlib backend that does not require X (or TK)
echo "backend : Agg" > matplotlibrc
@# make the install part of the testing process ^
docker run -tv `pwd`:/io image make install test
@# remove matplotlibrc file again (or should we leave it?)
@# would be better to do this via environment variable in
@# container
rm -v matplotlibrc