@@ -3,41 +3,63 @@ dist: xenial
33matrix :
44 include :
55 - python : 2.7
6+ services : xvfb
67 - python : 3.6
7- - python : 3.7
8- - python : 3.8
8+ dist : xenial
9+ services : xvfb
910
1011addons :
1112 apt :
1213 packages :
1314 - gfortran
15+ - libncurses5-dev
1416
1517before_install :
16- - pip install pytest-cov
18+ - sudo apt-get update
19+ # We do this conditionally because it saves us some downloading if the
20+ # version is the same.
21+ - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
22+ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
23+ else
24+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
25+ fi
26+ - bash miniconda.sh -b -p $HOME/miniconda
27+ - source "$HOME/miniconda/etc/profile.d/conda.sh"
28+ - hash -r
29+ - conda config --set always_yes True --set changeps1 False
30+ - conda update -q conda
31+ # Useful for debugging any issues with conda
32+ - conda info -a
33+ # Create conda test environment
34+ - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy requests beautifulsoup4 lxml netCDF4 h5py nose pytest-cov pytest-ordering coveralls future
35+ - conda activate test-environment
36+ # Install version limited packages
37+ - conda install 'pandas>=0.23, <0.25'
38+ - conda install 'xarray<0.15'
39+ - conda install 'kiwisolver<1.2'
40+ # Dependencies not available through conda, install through pip
41+ - pip install madrigalWeb
42+ - pip install PyForecastTools
43+ - pip install pysatCDF >/dev/null
44+ # Get latest coveralls from pip, not conda
1745 - pip install coveralls
18- - pip install future
19- - pip install 'pandas<0.25'
20- - pip install 'xarray<0.15'
21- # Install version specific packages for 2.7 and 3.5
22- - pip install matplotlib
46+ # set up data directory
47+ - mkdir /home/travis/build/pysatData
2348 - pip install apexpy
24- - pip install numpy
25- - pip install pysatCDF >/dev/null
49+
50+ # Prepare modified pysat install
2651 - cd ..
52+ - echo 'cloning pysat'
2753 - git clone https://github.com/pysat/pysat.git >/dev/null
28- - cd ./pysat # set up data directory
54+ - echo 'installing pysat'
55+ - cd ./pysat
56+ # install pysat
2957 - git checkout develop
30- - git pull origin develop
3158 - python setup.py install >/dev/null
32- - cd ..
33-
34- # set up data directory
35- - mkdir /home/travis/build/pysatData
36- - python -c 'import pysat; pysat.utils.set_data_dir("/home/travis/build/pysatData")'
59+ - cd ../OMMBV
3760
3861install :
3962 # install OMMBV
40- - cd ./OMMBV
4163 - python setup.py develop
4264
4365# command to run tests
0 commit comments