Skip to content

Commit 6ea7eb2

Browse files
committed
Merge pull request #626 from shoyer/conda-env
Update Travis-CI builds to use conda env
2 parents 5abc994 + 45be2f4 commit 6ea7eb2

13 files changed

+141
-34
lines changed

.travis.yml

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,48 @@ matrix:
88
fast_finish: true
99
include:
1010
- python: 2.6
11-
env: UPDATE_ENV="conda install unittest2 pandas==0.15.0 h5py cython matplotlib && pip install h5netcdf"
12-
# Test on Python 2.7 with and without netCDF4/scipy/cdat-lite
11+
env: CONDA_ENV=py26
1312
- python: 2.7
14-
env: UPDATE_ENV="conda install -c scitools cdat-lite h5py cython matplotlib && pip install cyordereddict h5netcdf"
13+
env: CONDA_ENV=py27-min
1514
- python: 2.7
16-
# nb. we have to remove scipy because conda install pandas brings it in:
17-
# https://github.com/ContinuumIO/anaconda-issues/issues/145
18-
env: UPDATE_ENV="conda remove scipy netCDF4 && conda install dask"
15+
env: CONDA_ENV=py27-cdat
1916
- python: 3.4
20-
env: UPDATE_ENV="conda install -c pandas bottleneck h5py cython dask matplotlib seaborn && pip install cyordereddict h5netcdf"
17+
env: CONDA_ENV=py34
2118
- python: 3.5
22-
env: UPDATE_ENV="conda install -c pandas h5py cython dask matplotlib seaborn && pip install cyordereddict h5netcdf"
23-
# don't require pydap tests to pass because the dap test server is unreliable
24-
- python: 2.7
25-
env: UPDATE_ENV="pip install pydap && conda install dask"
26-
# test netCDF4-python master
19+
env: CONDA_ENV=py35
2720
- python: 2.7
21+
env: CONDA_ENV=py27-pydap
22+
- python: 3.5
23+
env: CONDA_ENV=py27-netcdf4-dev
2824
addons:
2925
apt_packages:
3026
- libhdf5-serial-dev
3127
- netcdf-bin
3228
- libnetcdf-dev
33-
env: UPDATE_ENV="conda install cython && pip install https://github.com/Unidata/netcdf4-python/archive/master.zip"
34-
- python: 2.7
35-
env: UPDATE_ENV="pip install toolz https://github.com/blaze/dask/archive/master.zip"
36-
- python: 2.7
37-
env: UPDATE_ENV="conda remove pandas && conda install cython && pip install https://github.com/pydata/pandas/archive/master.zip"
29+
- python: 3.5
30+
env: CONDA_ENV=py35-dask-dev
31+
- python: 3.5
32+
env: CONDA_ENV=py35-pandas-dev
3833
allow_failures:
3934
- python: 2.7
40-
env: UPDATE_ENV="pip install pydap && conda install dask"
41-
- python: 2.7
35+
env: CONDA_ENV=py27-pydap
36+
- python: 3.5
37+
env: CONDA_ENV=py27-netcdf4-dev
4238
addons:
4339
apt_packages:
4440
- libhdf5-serial-dev
4541
- netcdf-bin
4642
- libnetcdf-dev
47-
env: UPDATE_ENV="conda install cython && pip install https://github.com/Unidata/netcdf4-python/archive/master.zip"
48-
- python: 2.7
49-
env: UPDATE_ENV="pip install toolz https://github.com/blaze/dask/archive/master.zip"
50-
- python: 2.7
51-
env: UPDATE_ENV="conda remove pandas && conda install cython && pip install https://github.com/pydata/pandas/archive/master.zip"
43+
- python: 3.5
44+
env: CONDA_ENV=py35-dask-dev
45+
- python: 3.5
46+
env: CONDA_ENV=py35-pandas-dev
5247

5348
before_install:
5449
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
55-
wget http://repo.continuum.io/miniconda/Miniconda-3.7.3-Linux-x86_64.sh -O miniconda.sh;
50+
wget http://repo.continuum.io/miniconda/Miniconda-3.16.0-Linux-x86_64.sh -O miniconda.sh;
5651
else
57-
wget http://repo.continuum.io/miniconda/Miniconda3-3.7.3-Linux-x86_64.sh -O miniconda.sh;
52+
wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh;
5853
fi
5954
- bash miniconda.sh -b -p $HOME/miniconda
6055
- export PATH="$HOME/miniconda/bin:$PATH"
@@ -64,10 +59,8 @@ before_install:
6459
- conda info -a
6560

6661
install:
67-
- conda create --yes -n test_env python=$TRAVIS_PYTHON_VERSION pip nose numpy pandas scipy netCDF4
62+
- conda env create --file ci/requirements-$CONDA_ENV.yml
6863
- source activate test_env
69-
- echo $UPDATE_ENV; eval $UPDATE_ENV
70-
- pip install coveralls
7164
- python setup.py install
7265

7366
script:

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ install:
2626
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
2727

2828
# install xray and depenencies
29-
- "conda install --yes --quiet pip nose numpy pandas scipy netCDF4 matplotlib"
29+
- "conda install --yes --quiet pip nose numpy pandas scipy netCDF4 matplotlib dask"
3030
- "python setup.py install"
3131

3232
build: false

ci/install_dask.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

ci/requirements-py26.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test_env
2+
dependencies:
3+
- python=2.6.9
4+
- cython=0.22.1
5+
- h5py=2.5.0
6+
- nose
7+
- ordereddict
8+
- numpy=1.9.2
9+
- pandas=0.16.2
10+
- matplotlib=1.4
11+
# no seaborn
12+
- scipy=0.16.0
13+
- unittest2
14+
- pip:
15+
- coveralls
16+
- dask
17+
- h5netcdf

ci/requirements-py27-cdat.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: test_env
2+
channels:
3+
- ajdawson
4+
dependencies:
5+
- python=2.7
6+
- cdat-lite
7+
- dask
8+
- nose
9+
- numpy
10+
- pandas>=0.15.0
11+
- scipy
12+
- pip:
13+
- coveralls
14+
- cyordereddict

ci/requirements-py27-min.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: test_env
2+
dependencies:
3+
- python=2.7
4+
- nose
5+
- numpy==1.9.3
6+
- pandas==0.15.0
7+
- pip:
8+
- coveralls

ci/requirements-py27-netcdf4-dev.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: test_env
2+
dependencies:
3+
- python=2.7
4+
- cython
5+
- dask
6+
- h5py
7+
- nose
8+
- numpy
9+
- pandas
10+
- scipy
11+
- pip:
12+
- coveralls
13+
- h5netcdf
14+
- git+https://github.com/Unidata/netcdf4-python.git

ci/requirements-py27-pydap.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: test_env
2+
dependencies:
3+
- python=2.7
4+
- dask
5+
- h5py
6+
- netcdf4
7+
- nose
8+
- numpy
9+
- pandas
10+
- scipy
11+
- pip:
12+
- coveralls
13+
- pydap

ci/requirements-py34.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: test_env
2+
dependencies:
3+
- python=3.4
4+
- bottleneck
5+
- nose
6+
- pandas
7+
- pip:
8+
- coveralls

ci/requirements-py35-dask-dev.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: test_env
2+
dependencies:
3+
- python=3.5
4+
- cython
5+
- nose
6+
- numpy
7+
- pandas
8+
- scipy
9+
- toolz
10+
- pip:
11+
- coveralls
12+
- git+https://github.com/blaze/dask.git

0 commit comments

Comments
 (0)