mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
Build system image
This commit is contained in:
20
Makefile
20
Makefile
@@ -1,12 +1,19 @@
|
||||
PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG
|
||||
JULIA := julia --color=yes --project=src/julia
|
||||
JULIA := julia --color=yes --project=src/julia --sysimage build/sysimage.so
|
||||
|
||||
all: docs test
|
||||
|
||||
build/sysimage.so: src/julia/Manifest.toml src/julia/Project.toml
|
||||
mkdir -p build
|
||||
julia --color=yes --project=src/julia src/julia/sysimage.jl
|
||||
|
||||
develop:
|
||||
cd src/python && python setup.py develop
|
||||
$(JULIA) -e "using Pkg; Pkg.instantiate()"
|
||||
|
||||
docs:
|
||||
mkdocs build
|
||||
|
||||
install:
|
||||
cd src/python && python setup.py install
|
||||
$(JULIA) -e "using Pkg; Pkg.instantiate()"
|
||||
@@ -14,18 +21,15 @@ install:
|
||||
uninstall:
|
||||
pip uninstall miplearn
|
||||
|
||||
docs:
|
||||
mkdocs build
|
||||
|
||||
test: test-python test-julia
|
||||
|
||||
test-python:
|
||||
cd src/python && pytest $(PYTEST_ARGS)
|
||||
|
||||
test-julia:
|
||||
$(JULIA) -e 'using Pkg; Pkg.test("MIPLearn")'
|
||||
|
||||
test-watch:
|
||||
test-python-watch:
|
||||
cd src/python && pytest-watch -- $(PYTEST_ARGS)
|
||||
|
||||
test-julia: build/sysimage.so
|
||||
$(JULIA) src/julia/test/runtests.jl
|
||||
|
||||
.PHONY: test test-python test-julia test-watch docs
|
||||
|
||||
Reference in New Issue
Block a user