forked from pyrosm/pyrosm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (33 loc) · 1.06 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
language: python
sudo: false
cache: false
matrix:
include:
# Only test for these Python versions
- env: ENV_FILE="ci/36-conda.yaml"
- env: ENV_FILE="ci/37-conda.yaml"
- env: ENV_FILE="ci/38-conda.yaml"
install:
# Install conda
- 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"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda info
# free channel needed for older envs (< py37), see
# https://github.com/conda/conda/issues/8849
- conda config --set restore_free_channel true
# Install dependencies
- conda env create --file="${ENV_FILE}"
- source activate test
- if [ "$STYLE" ]; then pip install black flake8; fi
- pip install -e .
- conda list
- python -c "import pyrosm"
script:
- pytest --cov pyrosm -v --cov-report term-missing
- if [ "$STYLE" ]; then black --check pyrosm; fi
- if [ "$STYLE" ]; then flake8 pyrosm; fi
after_success:
- codecov