|
1 |
| -language: python |
2 |
| -python: |
3 |
| - - "3.5" |
4 |
| -install: |
5 |
| - - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh |
6 |
| - - bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda |
7 |
| - - export PATH="$HOME/miniconda/bin:$PATH" |
| 1 | +sudo: required |
8 | 2 |
|
9 |
| - - conda config --add channels conda-forge |
10 |
| - - conda config --add channels bioconda |
11 |
| - - conda config --set always_yes yes --set changeps1 no |
12 |
| - - conda config --set show_channel_urls True |
| 3 | +dist: bionic |
13 | 4 |
|
14 |
| - - ENV_NAME='testing' |
15 |
| - - conda create --quiet -n $ENV_NAME python=$TRAVIS_PYTHON_VERSION |
16 |
| - - source activate $ENV_NAME |
17 |
| - - conda install --quiet --file requirements.txt |
18 |
| - - conda list |
19 |
| - - conda info -a |
| 5 | +language: python |
| 6 | + - "3.6" |
| 7 | +install: |
| 8 | + - sudo apt-get install python3-h5py |
| 9 | + - sudo apt-get install hdf5-helpers hdf5-tools |
| 10 | + - sudo apt-get install libhdf5-dev |
| 11 | + - dpkg -L libhdf5-dev |
| 12 | + - sudo apt-get install python3-requests |
| 13 | + - sudo apt-cache search netcdf |
| 14 | + - sudo apt-get install libnetcdf-dev |
| 15 | + - sudo apt-get install netcdf-bin |
| 16 | + - sudo apt-get install python3-jinja2 |
| 17 | + - sudo apt-get install python3-six |
| 18 | + - sudo apt-get install python3-pip |
| 19 | + - sudo pip3 install setuptools --upgrade |
| 20 | + - sudo pip3 install pyparsing |
| 21 | + - sudo pip3 install rdflib |
| 22 | + - export HDF5_DIR=/usr/include/hdf5 |
| 23 | + - export USE_SETUPCFG=0 |
| 24 | + - export HDF5_INCDIR=/usr/include |
| 25 | + - export HDF5_LIBDIR=/usr/lib/x86_64-linux-gnu |
| 26 | + - sudo pip3 install netCDF4 |
20 | 27 | - wget https://github.com/marqh/terra/archive/master.zip
|
21 | 28 | - unzip master.zip
|
22 | 29 | - cd terra-master
|
23 |
| - - python setup.py --quiet install |
| 30 | + - sudo python3 setup.py --quiet install |
24 | 31 | - cd ..
|
25 |
| - - python setup.py --quiet install |
| 32 | + - sudo python3 setup.py --quiet install |
| 33 | + - python3 -c 'import bald; print(bald); print(bald.__version__)' |
| 34 | + - which python3 |
| 35 | + - python3 -c 'import numpy; print(numpy.__version__); import netCDF4; print(netCDF4.__version__' |
26 | 36 |
|
27 | 37 | script:
|
28 |
| - python -m unittest discover -s bald.tests -v |
| 38 | + python3 -m unittest discover -s bald.tests -v |
0 commit comments