Skip to content

Commit

Permalink
Merge pull request #49 from arraiyopensource/fix/migration_links
Browse files Browse the repository at this point in the history
add pytest-cov and codecov
  • Loading branch information
edgarriba committed Jan 19, 2019
2 parents 6280267 + 839895a commit 909b529
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 909b529

Please sign in to comment.