Skip to content

Commit

Permalink
Re-arrange travis.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed Nov 4, 2017
1 parent 484b2be commit be81aa0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
38 changes: 18 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,22 @@ install:
# ---------------------------------
- conda config --add channels conda-forge
- >
CONDA_REQ_FLAGS=""
CONDA_REQ_GROUPS="test"
CONDA_REQ_FLAGS="";
CONDA_REQ_GROUPS="test";
if [[ "$TRAVIS_PYTHON_VERSION" == 2* ]]; then
CONDA_REQ_FLAGS="${CONDA_REQ_FLAGS} --py2"
fi
CONDA_REQ_FLAGS="${CONDA_REQ_FLAGS} --py2";
fi;
if [[ "$TEST_MINIMAL" == false ]]; then
CONDA_REQ_GROUPS="${CONDA_REQ_GROUPS} all"
fi
CONDA_REQS_FILE=conda-requirements.txt
python requirements/gen_conda_requirements.py ${CONDA_REQ_GROUPS} ${CONDA_REQ_FLAGS} > ${CONDA_REQS_FILE}
cat ${CONDA_REQS_FILE}
conda install --quiet --file ${CONDA_REQS_FILE}
- >
CONDA_REQ_GROUPS="${CONDA_REQ_GROUPS} all";
fi;
if [[ "${TEST_TARGET}" == 'doctest' ]]; then
conda install --quiet --file requirements/docs.txt
fi
CONDA_REQ_GROUPS="${CONDA_REQ_GROUPS} docs";
fi;
# JUST FOR NOW : Install latest version of iris-grib.
# TODO : remove when this release is available on conda-forge.
- if [[ "$TEST_MINIMAL" != true ]]; then
pip install git+https://github.com/SciTools/[email protected] ;
fi
CONDA_REQS_FILE=conda-requirements.txt;
python requirements/gen_conda_requirements.py ${CONDA_REQ_GROUPS} ${CONDA_REQ_FLAGS} > ${CONDA_REQS_FILE};
cat ${CONDA_REQS_FILE};
conda install --quiet --file ${CONDA_REQS_FILE};
- PREFIX=$HOME/miniconda/envs/$ENV_NAME

Expand Down Expand Up @@ -108,6 +100,12 @@ install:

- 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 ]]; then
pip install git+https://github.com/SciTools/[email protected] ;
fi

script:
- if [[ $TEST_TARGET == 'default' ]]; then
python -m iris.tests.runner --default-tests --system-tests --print-failed-images --num-processors=3;
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,6 @@ def extract_version():
tests_require=['{}[test]'.format(pypi_name)],
extras_require = {
'test': pip_requirements('test'),
'all': pip_requirements('full'),
'all': pip_requirements('all'),
},
)

0 comments on commit be81aa0

Please sign in to comment.