Skip to content
Permalink
Browse files

Added test for correctly installed Python 3 version in Travis.CI

- added test for MacOS only, where Travis does not control the version
- closes #487 by making sure a failed Python build will be visible
  • Loading branch information...
mrbean-bremen committed May 22, 2019
1 parent c7f463d commit f8d7ca6b9b3842fbd2c5d03da3441f1c6500260e
Showing with 34 additions and 21 deletions.
  1. +18 −6 .travis.yml
  2. +12 −15 .travis/install.sh
  3. +4 −0 CHANGES.md
@@ -21,15 +21,23 @@ matrix:
- python: 2.7
env: PYTHON=py27
- python: 3.4
env: PYTHON=py34
env:
- PYTHON=py34
- PY_VERSION=3.4.10
- python: 3.5
env: PYTHON=py35
env:
- PYTHON=py35
- PY_VERSION=3.5.7
- python: 3.6
env: PYTHON=py36
env:
- PYTHON=py36
- PY_VERSION=3.6.8
- python: 3.7
dist: xenial
sudo: true
env: PYTHON=py37
env:
- PYTHON=py37
- PY_VERSION=3.7.3
- python: pypy2.7-7.0.0
dist: xenial
sudo: true
@@ -43,10 +51,14 @@ matrix:
env: PYTHON=py27
- os: osx
language: generic
env: PYTHON=py36
env:
- PYTHON=py36
- PY_VERSION=3.6.8
- os: osx
language: generic
env: PYTHON=py37
env:
- PYTHON=py37
- PY_VERSION=3.7.3
- language: minimal
env: VM=Docker

@@ -17,27 +17,24 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
;;
py34)
pyenv install 3.4.10
pyenv global 3.4.10
;;
py35)
pyenv install 3.5.7
pyenv global 3.5.7
;;
py36)
pyenv install 3.6.8
pyenv global 3.6.8
;;
py37)
pyenv install 3.7.3
pyenv global 3.7.3
py34|py35|py36|py37)
pyenv install ${PY_VERSION}
pyenv global ${PY_VERSION}
echo Checking Python version...
if [ "`python --version`" != "Python ${PY_VERSION}" ]
then
echo Incorrect version - expected ${PY_VERSION}.
echo Exiting.
exit 1
fi
echo Python version ok.
;;
pypy*)
pyenv install "$PYPY_VERSION"
pyenv global "$PYPY_VERSION"
;;
esac

pyenv rehash
python -m pip install --user virtualenv
python -m virtualenv ~/.venv
@@ -12,6 +12,10 @@ The release versions are PyPi releases.
* added argument `allow_root_user` to `Patcher` and `UnitTest` to allow
forcing non-root access (see [#474](../../issues/474))
* added basic support for `os.pipe` (see [#473](../../issues/473))

#### Infrastructure
* added check for correctly installed Python 3 version in Travis.CI
(see [#487](../../issues/487))

#### Fixes
* fake `DirEntry` now implements `os.PathLike` in Python >= 3.6

0 comments on commit f8d7ca6

Please sign in to comment.
You can’t perform that action at this time.