-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
29 lines (25 loc) · 1.5 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 Meteodan/arpsEnKFtools
- secure: "nkfxPzfj2ARUQhtngaKDOSnTlCpqQj9q6GF+851hSsHdCxysHzhG8n4l+Ot7hn/zfeAQ+PwAOlnfQ3tZEw/6Niek8z8tFE2XbLmyVj0a6vjOzr1N9VfqYVgxTZyqjEdYbyUKcWIiMvUDdu8S5RmNU3WTJXfPECpaXQFIuBVyvVrjmopSQMdenvBa4pZu2n2/uIdYTfYHaP0ticBANrZvEP2LIPVAys67qclhKWP4YNcPHrtdT5uua74soo2cz1hNn9tDUFQ4ejaeG/F8Ek9tGaJne8qfn46P0rbtPd39kU4Kxi6Mf8pV2d2BDKKL4smTAp+BWcooVEbCPiJdka8r7F6//HJCB+CjqygDP4oGJ/vD1e7jbT0lb5g54yZOBmbnYiXIJRZHJ/DjfLnb0Lb/NHmYmLBRS+f1V3Rn8pWT0bpuUAWIxmn5XgUmyyt3oyxfIKWwAq99iQcJx74psZjY0+XFT2hHthXFroTl4aZB8AkRyKMjRXHnMu8avliDa8fwbBXPxh73CY03ALtAWvfQ8ZJHnhQPomaVcULuj9s/I4KhCHUHGVN3oVQmCNXL4JwP0cb+prZ/InEuwvtzy8epKbzT7DCbRU1rqNPznf8EJPtfOnM/qNAApIqhH8Ij9NUTxQO54IlYvriVj62Ws6NbrJfsJCn8BEDE21FqMCFaN00="
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.
- flake8 --max-line-length=100 # Enforce code style (but relax line length limit a bit).
- set -e
- make -C docs html # Build the documentation.
- pip install doctr
- doctr deploy --built-docs docs/build/html/ .