84 lines
3.3 KiB
YAML
84 lines
3.3 KiB
YAML
matrix:
|
|
include:
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "2.7"
|
|
env: CFLAGS="-Werror -coverage"
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "3.3"
|
|
env: CFLAGS="-Werror -coverage"
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "3.4"
|
|
env: CFLAGS="-Werror -coverage"
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "3.5"
|
|
env: CFLAGS="-Werror -coverage"
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "3.6"
|
|
env: CFLAGS="-Werror -coverage"
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "3.7-dev"
|
|
env: CFLAGS="-coverage"
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "pypy2.7-5.10.0"
|
|
env: CFLAGS="-Werror -coverage"
|
|
- os: linux
|
|
dist: trusty
|
|
language: python
|
|
python: "pypy3.5-5.10.1"
|
|
env: CFLAGS="-Werror -coverage"
|
|
- os: osx
|
|
osx_image: xcode7.3
|
|
language: generic
|
|
env: PYVER="3" CFLAGS="-Werror -coverage"
|
|
- os: osx
|
|
osx_image: xcode7.3
|
|
language: generic
|
|
env: PYVER="2" CFLAGS="-Werror -coverage"
|
|
|
|
|
|
install:
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry sudo apt-get update -q; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry sudo apt-get install -y libcairo2-dev; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pkg-config || brew upgrade pkg-config || true; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cairo || brew upgrade cairo || true; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "2" ]]; then brew install python@2 || brew upgrade python@2 || true; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "2" ]]; then python2 -m pip install virtualenv; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "2" ]]; then virtualenv ../venv -p python2; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "3" ]]; then brew install python || brew upgrade python || true; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "3" ]]; then python3 -m pip install virtualenv; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "3" ]]; then virtualenv ../venv -p python3; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ../venv/bin/activate; fi
|
|
- python -m pip install --upgrade setuptools
|
|
- python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme coverage codecov hypothesis
|
|
- python -m pip install --upgrade mypy || true
|
|
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.3" ]] && [[ "$TRAVIS_PYTHON_VERSION" != "3.7-dev" ]] && [[ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]]; then python -m pip install --upgrade pygame; fi
|
|
|
|
script:
|
|
- python -m coverage run --branch setup.py test
|
|
- python -m codecov
|
|
- python -m flake8 .
|
|
- python setup.py sdist
|
|
- python setup.py bdist
|
|
- python setup.py install --root=_root
|
|
- python setup.py install --root="$(pwd)"/_root_abs
|
|
- python setup.py bdist_egg
|
|
- python setup.py bdist_wheel
|
|
- python setup.py install --root=_root_setup
|
|
- if [[ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]] ; then python -m pip install .; fi
|
|
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.3" ]]; then python -m sphinx -W -a -E -b html -n docs docs/_build; fi
|