2017-04-09 18:54:04 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
language: python
|
|
|
|
python: "2.7"
|
2018-03-16 20:16:53 +02:00
|
|
|
env: CFLAGS="-Werror -coverage"
|
2017-04-09 18:54:04 +03:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
language: python
|
|
|
|
python: "3.4"
|
2018-03-16 20:16:53 +02:00
|
|
|
env: CFLAGS="-Werror -coverage"
|
2017-04-09 18:54:04 +03:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
language: python
|
|
|
|
python: "3.5"
|
2018-03-16 20:16:53 +02:00
|
|
|
env: CFLAGS="-Werror -coverage"
|
2017-04-09 18:54:04 +03:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
language: python
|
|
|
|
python: "3.6"
|
2018-03-16 20:16:53 +02:00
|
|
|
env: CFLAGS="-Werror -coverage"
|
2018-04-15 11:08:41 +03:00
|
|
|
- os: linux
|
2018-07-07 16:38:06 +03:00
|
|
|
dist: xenial
|
2018-04-15 11:08:41 +03:00
|
|
|
language: python
|
2018-07-07 16:38:06 +03:00
|
|
|
python: "3.7"
|
|
|
|
env: CFLAGS="-Werror -coverage"
|
2019-10-22 20:35:00 +03:00
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
language: python
|
|
|
|
python: "3.8"
|
|
|
|
env: CFLAGS="-Werror -coverage"
|
2018-01-30 11:20:38 +02:00
|
|
|
- os: linux
|
2019-03-23 19:41:52 +02:00
|
|
|
dist: xenial
|
2018-01-30 11:20:38 +02:00
|
|
|
language: python
|
2019-03-23 19:41:52 +02:00
|
|
|
python: "pypy2.7-6.0"
|
2018-03-16 20:16:53 +02:00
|
|
|
env: CFLAGS="-Werror -coverage"
|
2018-01-30 16:25:54 +02:00
|
|
|
- os: linux
|
2019-03-23 19:41:52 +02:00
|
|
|
dist: xenial
|
2018-01-30 16:25:54 +02:00
|
|
|
language: python
|
2019-03-23 19:41:52 +02:00
|
|
|
python: "pypy3.5-6.0"
|
2018-04-12 10:49:41 +03:00
|
|
|
env: CFLAGS="-Werror -coverage"
|
2017-05-07 12:53:01 +03:00
|
|
|
- os: osx
|
2019-10-05 23:10:38 +03:00
|
|
|
osx_image: xcode10.3
|
2017-05-07 12:53:01 +03:00
|
|
|
language: generic
|
2018-03-16 20:16:53 +02:00
|
|
|
env: PYVER="3" CFLAGS="-Werror -coverage"
|
2017-05-07 12:53:01 +03:00
|
|
|
- os: osx
|
2019-10-05 23:10:38 +03:00
|
|
|
osx_image: xcode10.3
|
2017-05-07 12:53:01 +03:00
|
|
|
language: generic
|
2018-03-16 20:16:53 +02:00
|
|
|
env: PYVER="2" CFLAGS="-Werror -coverage"
|
2017-05-07 12:53:01 +03:00
|
|
|
|
2017-04-09 18:54:04 +03:00
|
|
|
|
|
|
|
install:
|
2017-05-07 12:53:01 +03:00
|
|
|
- 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
|
2017-10-15 22:37:45 +03:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
2017-10-15 23:10:22 +03:00
|
|
|
- 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
|
2019-03-09 19:13:43 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"; fi
|
2018-03-02 21:37:57 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "2" ]]; then brew install python@2 || brew upgrade python@2 || true; fi
|
2017-07-18 21:10:05 +03:00
|
|
|
- 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
|
2018-03-02 21:37:57 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYVER" == "3" ]]; then brew install python || brew upgrade python || true; fi
|
2017-05-07 12:53:01 +03:00
|
|
|
- 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
|
2017-08-07 16:47:10 +03:00
|
|
|
- python -m pip install --upgrade setuptools
|
2019-10-05 22:24:01 +03:00
|
|
|
- python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme coverage codecov hypothesis attrs
|
2018-02-24 13:45:26 +02:00
|
|
|
- python -m pip install --upgrade mypy || true
|
2019-10-22 20:35:00 +03:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" != "osx" ]] && [[ "$TRAVIS_PYTHON_VERSION" != "3.8" ]] && [[ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]]; then python -m pip install --upgrade pygame; fi
|
2017-04-09 18:54:04 +03:00
|
|
|
|
|
|
|
script:
|
2017-08-10 14:29:55 +03:00
|
|
|
- python -m coverage run --branch setup.py test
|
2018-11-07 21:55:13 +02:00
|
|
|
- python -m codecov --required || true
|
2017-05-01 17:20:39 +03:00
|
|
|
- python -m flake8 .
|
2017-07-25 22:24:21 +03:00
|
|
|
- python setup.py sdist
|
2018-01-31 20:28:32 +02:00
|
|
|
- python setup.py bdist
|
|
|
|
- python setup.py install --root=_root
|
|
|
|
- python setup.py install --root="$(pwd)"/_root_abs
|
2018-04-15 11:41:53 +03:00
|
|
|
- python setup.py bdist_egg
|
|
|
|
- python setup.py bdist_wheel
|
|
|
|
- python setup.py install --root=_root_setup
|
2018-02-07 17:50:36 +02:00
|
|
|
- if [[ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]] ; then python -m pip install .; fi
|
2018-07-07 16:38:06 +03:00
|
|
|
- python -m sphinx -W -a -E -b html -n docs docs/_build
|