Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,23 @@ install:
echo 'Install Iris dependencies';
CONDA_REQS_FLAGS="";
CONDA_REQS_GROUPS="test";
CONDA_INSTALL_EXTRAS="";
if [[ "${PYTHON_VERSION}" == 2* ]]; then
CONDA_REQS_FLAGS="${CONDA_REQS_FLAGS} --py2";
fi;
if [[ "${TEST_MINIMAL}" != true ]]; then
CONDA_REQS_GROUPS="${CONDA_REQS_GROUPS} all";
if [[ "${PYTHON_VERSION}" == 2* ]]; then
CONDA_INSTALL_EXTRAS="${CONDA_INSTALL_EXTRAS} eccodes python-eccodes";
fi;
fi;
if [[ "${TEST_TARGET}" == 'doctest' ]]; then
CONDA_REQS_GROUPS="${CONDA_REQS_GROUPS} docs";
fi;
CONDA_REQS_FILE="conda-requirements.txt";
python requirements/gen_conda_requirements.py ${CONDA_REQS_FLAGS} --groups ${CONDA_REQS_GROUPS} > ${CONDA_REQS_FILE};
cat ${CONDA_REQS_FILE};
conda install --quiet -n ${ENV_NAME} --file ${CONDA_REQS_FILE};
conda install --quiet -n ${ENV_NAME} --file ${CONDA_REQS_FILE} ${CONDA_INSTALL_EXTRAS};

- PREFIX="${HOME}/miniconda/envs/${ENV_NAME}"

Expand Down Expand Up @@ -111,14 +115,14 @@ install:
echo "[System]" >> ${SITE_CFG};
echo "udunits2_path = ${PREFIX}/lib/libudunits2.so" >> ${SITE_CFG};

- python setup.py --quiet install
# install iris from local copy
- python setup.py --quiet install;

# JUST FOR NOW : Install latest version of iris-grib.
# TODO : remove when iris doesn't do an integration test requiring iris-grib.
- if [[ "${TEST_MINIMAL}" != true && ${PYTHON_VERSION} == 2* ]]; then
conda install --quiet -n ${ENV_NAME} python-ecmwf_grib;
pip install git+https://github.com/SciTools/[email protected];
fi
# when wanted, add iris-grib (last and --no-deps, to avoid installing iris from channels)
- >
if [[ "${TEST_MINIMAL}" != true && "${PYTHON_VERSION}" == 2* ]]; then
conda install --no-deps iris-grib
fi;

script:
# Capture install-dir: As a test command must be last for get Travis to check
Expand Down
1 change: 0 additions & 1 deletion requirements/core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Without these, iris won't even import.

cartopy
#conda: proj4<5
cf-units>=2
cftime
dask[array]<2 #conda: dask<2
Expand Down