Skip to content

Commit 4c226a1

Browse files
committed
travis on bionic python
1 parent ea36967 commit 4c226a1

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

.travis.yml

+30-20
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
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
82

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
134

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
2027
- wget https://github.com/marqh/terra/archive/master.zip
2128
- unzip master.zip
2229
- cd terra-master
23-
- python setup.py --quiet install
30+
- sudo python3 setup.py --quiet install
2431
- 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: ' + numpy.__version__); import netCDF4; print('netCDF4: ' + netCDF4.__version__)'
2636

2737
script:
28-
python -m unittest discover -s bald.tests -v
38+
python3 -m unittest discover -s bald.tests -v

0 commit comments

Comments
 (0)