Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

add pytest-cov and codecov

edgarribaba943dbc39a8
diff --git a/.travis.yml b/.travis.yml
index 0955ae3cf..dbeea0f4b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,29 +1,28 @@
-sudo: true
-dist: trusty
+language: python
+python:
+ - "3.6"
notifications:
email: false
-services:
- - docker
-
install:
- - cd docker; ./build.sh
- - docker images
+ - ./setup_travis_env.sh
+
+before_script:
+ - source path.bash.inc
matrix:
include:
- env: lint check
- script: docker run arraiy/torchgeometry /bin/bash -c "source path.bash.inc && python verify.py --check lint"
-
+ script: python verify.py --check lint
+
- env: static check
- script: docker run arraiy/torchgeometry /bin/bash -c "source path.bash.inc && python verify.py --check mypy"
-
+ script: python verify.py --check mypy
+
- env: docs
- script: docker run arraiy/torchgeometry /bin/bash -c "source path.bash.inc && python verify.py --check build-docs"
-
- - env: test
- script: docker run arraiy/torchgeometry /bin/bash -c "source path.bash.inc && pytest --cov=torchgeometry test/"
-
-after_success:
- - bash < (curl -s https://codecov.io/bash)
+ script: python verify.py --check build-docs
+
+ - env: unit tests
+ script: pytest --cov=torchgeometry test
+ after_success:
+ - bash <(curl -s https://codecov.io/bash)