Skip to content

Commit

Permalink
Revert "Use pyenv global to set version."
Browse files Browse the repository at this point in the history
This reverts commit dacf4c3.
  • Loading branch information
theengineear committed Mar 13, 2015
1 parent 087ee62 commit f25a603
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ dependencies:
# run all the pre-written installers (this will take a *while*)
- bash circle/setup.sh
# install testing tools for circle's version of things
- pyenv global 2.7 && pip install nose coverage
- PYENV_VERSION=2.7 && pip install nose coverage
override:
- pyenv global 2.7 && pip install -I .
- pyenv global 2.7 && cd ~ && python -c "import plotly"
- PYENV_VERSION=2.7 && pip install -I .
- PYENV_VERSION=2.7 && cd ~ && python -c "import plotly"
test:
override:

Expand All @@ -28,6 +28,6 @@ test:
# - sudo chmod 600 ${PLOTLY_CONFIG_DIR} && python -c "import plotly"

# test core things in the general 2.7 version that circle has
- pyenv global 2.7 && nosetests -xv plotly/tests --with-coverage --cover-package=plotly
- PYENV_VERSION=2.7 && nosetests -xv plotly/tests --with-coverage --cover-package=plotly
- mkdir "${CIRCLE_ARTIFACTS}/2.7" || true
- coverage html -d "${CIRCLE_ARTIFACTS}/2.7" --title=2.7
2 changes: 1 addition & 1 deletion circle/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
echo Setting up Python ${version}

# exporting this variable (in this scope) chooses the python version
pyenv global ${version}
export PYENV_VERSION=${version}
echo "Using pyenv version $(pyenv version)"

# install core requirements all versions need
Expand Down
2 changes: 1 addition & 1 deletion circle/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for version in ${PLOTLY_PYTHON_VERSIONS[@]}; do
echo Testing Python ${version}

# exporting this variable (in this scope) chooses the python version
pyenv global ${version}
export PYENV_VERSION=${version}
echo "Using pyenv version $(pyenv version)"

echo "python -c 'import sys; print(sys.version_info)' yields:"
Expand Down

0 comments on commit f25a603

Please sign in to comment.