Only install apt packages when replacing pyenv
@@ -14,6 +14,13 @@ _base_envs:
os: linux
dist: trusty
sudo: false
+- &pyenv_base
+ <<: *stage_test
+ python: pypy
+ env:
+ - PYTHON_VERSION=pypy2-5.7.1
+ - &env_pyenv PYENV_ROOT="$HOME/.pyenv"
+ - &env_path PATH="$PYENV_ROOT/bin:$PATH"
addons:
apt:
packages:
@@ -31,13 +38,6 @@ _base_envs:
- libncursesw5-dev
- xz-utils
- tk-dev
-- &pyenv_base
- <<: *stage_test
- python: pypy
- env:
- - PYTHON_VERSION=pypy2-5.7.1
- - &env_pyenv PYENV_ROOT="$HOME/.pyenv"
- - &env_path PATH="$PYENV_ROOT/bin:$PATH"
before_install:
- &ensure_pyenv_installed |
if [ -f "$PYENV_ROOT/bin/pyenv" ]
