-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (50 loc) · 1.53 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: python
dist: xenial
matrix:
include:
- python: 3.6
- python: 3.7
services: xvfb
cache: pip
addons:
apt:
packages:
- gfortran
- libncurses5-dev
install:
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes True --set changeps1 False
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Create conda test environment
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy pandas xarray requests beautifulsoup4 lxml netCDF4 pytest-cov pytest-ordering future
- conda activate test-environment
# Get latest coveralls from pip, not conda
- pip install coveralls
- pip install pytest-flake8
# Dependencies not available through conda, install through pip
- pip install pysatCDF >/dev/null
# Custom pysat install
- cd ..
- git clone https://github.com/pysat/pysat.git
- cd pysat
- git checkout develop-3
- python setup.py install
- export PYTHONPATH=$PYTHONPATH:$(pwd)
# set up data directory
- mkdir /home/travis/build/pysatData
- cd ../pysatIncubator
# install pysatIncubator
- python setup.py install
# command to run tests
script:
- pytest -vs --flake8 --cov=pysatIncubator/
after_success:
- coveralls --rcfile=setup.cfg