Skip to content

Commit

Permalink
Attempt to fix CI by pinning older python (#3808)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jul 9, 2019
1 parent e3c3534 commit 18c3e92
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
22 changes: 15 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
# we install miniconda and use conda to get python. Additionally,
# Travis's auto-install of python doesn't work on osx images (see
# https://github.com/travis-ci/travis-ci/issues/4729).
git:
depth: 100

language: generic
sudo: false

os:
- linux

dist: xenial

sudo: false

cache:
timeout: 300
directories:
Expand All @@ -23,11 +30,12 @@ notifications:

env:
global:
- PYENV_VERSION=3.6
- PYENV_VERSION=3.7
- PKG_TEST_PYTHON="--test-python=py36 --test-python=py27"
- CHANS_DEV="-c pyviz/label/dev -c conda-forge"
- CHANS="-c pyviz"
- MPLBACKEND="Agg"
- PYTHON_VERSION=3.6

stages:
- test
Expand Down Expand Up @@ -60,14 +68,14 @@ jobs:

- &default
stage: test
env: DESC="Python 3.6 tests" HV_REQUIREMENTS="unit_tests"
env: DESC="Python 3.6 tests" HV_REQUIREMENTS="unit_tests" PYTHON_VERSION=3.6
before_install:
- pip install pyctdev && doit miniconda_install && pip uninstall -y doit pyctdev
- export PATH="$HOME/miniconda/bin:$PATH" && hash -r
- conda config --set always_yes True
- conda install -c pyviz "pyctdev>=0.5" && doit ecosystem_setup
install:
- doit env_create $CHANS_DEV --python=$PYENV_VERSION
- doit env_create $CHANS_DEV --python=$PYTHON_VERSION
- source activate test-environment
- travis_wait 20 doit develop_install $CHANS_DEV -o $HV_REQUIREMENTS
- doit env_capture
Expand All @@ -77,7 +85,7 @@ jobs:
after_failure: sleep 10

- <<: *default
env: DESC="Python 2.7 tests" PYENV_VERSION=2.7 HV_REQUIREMENTS="unit_tests"
env: DESC="Python 2.7 tests" PYTHON_VERSION=2.7 HV_REQUIREMENTS="unit_tests"

# - &regression_test
# <<: *default
Expand Down Expand Up @@ -115,7 +123,7 @@ jobs:
# - if [ "$TRAVIS_BRANCH" == 'master' ]; then
# cd doc/test_data;
# zip -r test_data.zip *;
# aws s3 cp --region eu-west-1 ./test_data.zip "s3://preview.holoviews.org/$TRAVIS_BUILD_NUMBER/test_data_py${PYENV_VERSION:0:1}.zip";
# aws s3 cp --region eu-west-1 ./test_data.zip "s3://preview.holoviews.org/$TRAVIS_BUILD_NUMBER/test_data_py${PYTHON_VERSION:0:1}.zip";
# cd -;
# fi
# - aws s3 cp --recursive --region eu-west-1 ./doc/test_html "s3://travis.holoviews.org/build_$TRAVIS_BUILD_NUMBER"
Expand All @@ -133,7 +141,7 @@ jobs:
# - sleep 10

# - <<: *regression_test
# env: DESC="Python 2.7 regression tests" PYENV_VERSION=2.7 HV_REQUIREMENTS="nbtests"
# env: DESC="Python 2.7 regression tests" PYTHON_VERSION=2.7 HV_REQUIREMENTS="nbtests"

- &basic_deps
<<: *default
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'cyordereddict', 'flexx==0.4.1']

# Test requirements
extras_require['tests'] = ['nose', 'flake8==3.6.0', 'coveralls', 'path.py']
extras_require['tests'] = ['nose', 'flake8==3.6.0', 'coveralls', 'path.py', 'matplotlib>=2.1,<3.1']

extras_require['unit_tests'] = extras_require['examples']+extras_require['tests']

Expand Down

0 comments on commit 18c3e92

Please sign in to comment.