Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

add make file commands to travis

edgarriba13f890fc212d
diff --git a/.gitignore b/.gitignore
index d6a06ea70..e0387f788 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ torchgeometry.egg-info/
.pytest_cache/*
.dev_env
.mypy_cache/*
+.coverage
diff --git a/.travis.yml b/.travis.yml
index 8885fb911..09eeeb446 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,20 +10,20 @@ before_install:
- source path.bash.inc
install:
- - python setup.py install
+ - make install
matrix:
include:
- env: lint check
- script: python verify.py --check lint
+ script: make lint
- env: static check
- script: python verify.py --check mypy
+ script: make mypy
- env: docs
- script: python verify.py --check build-docs
+ script: make build-docs
- env: unit tests
- script: pytest -vx --cov=torchgeometry test
+ script: make test-cpu-cov
after_success:
- bash <(curl -s https://codecov.io/bash)
diff --git a/Makefile b/Makefile
index edf369585..517dd5ef7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,15 @@
-.PHONY: test test_cpu test_gpu
+.PHONY: test test-cpu test-gpu lint mypy build-docs install uninstall FORCE
test: test_cpu test_gpu
-test_cpu: FORCE
- python setup.py install && pytest --typetest cpu
+test-cpu: FORCE
+ pytest --typetest cpu -vx
-test_gpu: FORCE
- python setup.py install && pytest --typetest cuda
+test-cpu-cov: FORCE
+ pytest --typetest cpu -vx --cov=torchgeommetry test
+
+test-gpu: FORCE
+ pytest --typetest cuda -vx
lint: FORCE
python verify.py --check lint
@@ -14,8 +17,8 @@ lint: FORCE
mypy: FORCE
python verify.py --check mypy
-docs: FORCE
- $(MAKE) -C docs html
+build-docs: FORCE
+ python verify.py --check build-docs
install: FORCE
python setup.py install