Skip to content

Commit

Permalink
[CI] temporary fix for travis conda build
Browse files Browse the repository at this point in the history
blacklist conda 4.3.14 and conda-build 2.1.6,2.1.7, as they cause travis condarecipe build to fail reporting a signal-releated TypeError.

Also alter tox script by adding conda-forge channel at lower priority than defaults

[skip Appveyor]
  • Loading branch information
jcb91 committed Mar 17, 2017
1 parent e22e121 commit 810323d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,16 @@ before_install:
- 'if [[ ${TOXENV} == "condarecipe" ]]; then export PATH="$HOME/miniconda/bin:$PATH"; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then hash -r; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda config --set always_yes yes --set changeps1 no; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda update -q conda; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda info -a; fi # Useful for debugging any issues with conda'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda install conda-build; fi'
# conda 4.3.14 & conda-build 2.1.6,2.1.7 seem to fail with signals TypError on travis.
# conda's auto-update strategy also means that installing or updating anything else will cause
# conda to attempt to update itself.
# Thus instead of running
# conda update conda
# we install conda & conda-build together, specifying the versions that we
# wish to avoid
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda install "conda!=4.3.14" "conda-build!=2.1.6,!=2.1.7"; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda info -a; fi # Useful for debugging any issues with conda'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then git fetch --unshallow; fi'
install:
- pip install tox
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ deps =
; install of conda itself is handled in travis for CI tests
whitelist_externals =
conda
echo
commands =
echo 'add conda-forge channel'
conda build --channel conda-forge conda.recipe
conda install --channel conda-forge --use-local jupyter_contrib_nbextensions
conda config --prepend channels conda-forge # add conda-forge channel at lower priority than defaults
conda build conda.recipe
conda install --use-local jupyter_contrib_nbextensions

0 comments on commit 810323d

Please sign in to comment.