-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
70 lines (64 loc) · 1.99 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: python
dist: xenial
matrix:
include:
- python: 2.7
services: xvfb
- python: 3.6
dist: xenial
services: xvfb
addons:
apt:
packages:
- gfortran
- libncurses5-dev
before_install:
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- 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 requests beautifulsoup4 lxml netCDF4 h5py nose pytest-cov pytest-ordering coveralls future
- conda activate test-environment
# Install version limited packages
- conda install 'pandas>=0.23, <0.25'
- conda install 'xarray<0.15'
- conda install 'kiwisolver<1.2'
# Dependencies not available through conda, install through pip
- pip install madrigalWeb
- pip install PyForecastTools
- pip install pysatCDF >/dev/null
# Get latest coveralls from pip, not conda
- pip install coveralls
# set up data directory
- mkdir /home/travis/build/pysatData
- pip install apexpy
# Prepare modified pysat install
- cd ..
- echo 'cloning pysat'
- git clone https://github.com/pysat/pysat.git >/dev/null
- echo 'installing pysat'
- cd ./pysat
# install pysat
- git checkout develop
- python setup.py install >/dev/null
- cd ../OMMBV
install:
# install OMMBV
- python setup.py develop
# command to run tests
script:
- nosetests -vs --with-coverage --cover-package=OMMBV
after_success:
- coveralls