forked from aleaf/pydrograph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.24 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
30
31
32
33
34
35
36
37
38
39
40
language: python
#python:
# - 3.6
#cache:
# directories:
# - $HOME/.cache/pip
# - $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
matrix:
include:
- env: ENV_FILE="ci/requirements.yml"
install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda info -a
- conda env create --file="${ENV_FILE}"
- source activate test
- pip install -e .
- python -m ipykernel install --user --name test --display-name "test"
- conda list
# 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 -v # Run the tests and check for test coverage.
- coverage report -m # Generate test coverage report.
after_success:
- codecov # Upload the report to codecov.
#- flake8 --max-line-length=115 # Enforce code style (but relax line length limit a bit).
#- make -C docs html # Build the documentation.