-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
29 lines (26 loc) · 1.47 KB
/
.travis.yml
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
29
language: python
python:
- 3.6
cache:
directories:
- $HOME/.cache/pip
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
env:
global:
# Doctr deploy key for InatiLab/jem
- secure: "WeSANeyVM8qTgZS+QDUrv+VWFzE4Xgq3RlXKEdi+7qBOLNLRkr/CK+sl2piJcqY1vYvxqMriDGrzwSvgu+7zBBj8L2d3xZgF8713mdlHjStrUj3u9NJ2gHRcBnuhiOT+0+eghCpNoOOUOlKSLWsgroQhqfu4fDESA5wIQVn0D/ukkG1BFNKHIehkWYMcDzgvW1SfNsRS/IDGa8tC3mIG7GbUY0hln8ioepIWCRQveJJlaNjqwer8WcyDKUfn0dC5Qn/RSwIhuZsXbMVssKwgvlC3ef7iC3hX1zZmZM6ORrCEEjNZ7+1UYZeneqtn3s1DeCiWRFDxI46DULM+BsN9N/U7f57xKdbEl/ZnU3kXpQc6t2k72tP1Kqnx5NdG0BMLnTJ5gOeRQoauhrXJY47JPPvbWLnMf0uAJVr0wsLRvH2AUUSRJBxINQJXJoY/sklD8Ro8BcgpZMZWaQqw9tziVW4U2YBz5A+EXmG+4/mnH606V3zz+YDMPOFeCFFuj0Mf4bUui7p3L80AvVH/uDxUtScQKjhrgq1Pnat47CCN0YQIsvcUdO0ieyJjKIaxZJpmU8fmZ5xr0O4CHJxJrlF0djyu+ZsjYGg8UMoN0xBPeuk6ZxCwwelPz9OQk4FRKWB0DatXgMLKB8NU/KqfGtaE3t9bTL2giNokhJrGRS3YS20="
install:
# Install this package and the packages listed in requirements.txt.
- pip install .
# Install extra requirements for running tests and building docs.
- pip install -r requirements-dev.txt
script:
- coverage run -m pytest # Run the tests and check for test coverage.
- coverage report -m # Generate test coverage report.
- codecov # Upload the report to codecov.
- black . # Run black and flake
- flake8
- set -e
- make -C docs html # Build the documentation.
- pip install doctr
- doctr deploy --built-docs docs/build/html . # Publish the documentation