-
Notifications
You must be signed in to change notification settings - Fork 58
/
.travis.yml
38 lines (34 loc) · 1.08 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
language: python
python:
- '3.6'
- '3.7'
- '3.8'
services:
- xvfb # allows matplotlib display
install:
- 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 show_channel_urls true
- conda update -n base conda
- conda config --prepend channels conda-forge
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION pyyaml --file requirements-dev.txt
- source activate test-environment
- conda info --all
- pip install 'numpy>=1.18'
- pip install .
- pip list
- pip show urbanaccess
script:
- pycodestyle urbanaccess
- py.test
- cd demo
- jupyter nbconvert --to python simple_example.ipynb
- cd ../urbanaccess/tests/integration
- python remove_nb_magic.py -in simple_example.py -out simple_example_clean.py
- cd ../../../demo
- python simple_example_clean.py
- cd ../urbanaccess/tests/integration
- python integration_madison.py
- python integration_sandiego.py