py2cairo/.travis.yml

80 lines
3.2 KiB
YAML
Raw Normal View History

2017-04-09 18:54:04 +03:00
matrix:
include:
- os: linux
dist: trusty
language: python
python: "2.7"
env: CFLAGS="-Werror -coverage"
2017-04-09 18:54:04 +03:00
- os: linux
dist: trusty
language: python
python: "3.3"
env: CFLAGS="-Werror -coverage"
2017-04-09 18:54:04 +03:00
- os: linux
dist: trusty
language: python
python: "3.4"
env: CFLAGS="-Werror -coverage"
2017-04-09 18:54:04 +03:00
- os: linux
dist: trusty
language: python
python: "3.5"
env: CFLAGS="-Werror -coverage"
2017-04-09 18:54:04 +03:00
- os: linux
dist: trusty
language: python
python: "3.6"
env: CFLAGS="-Werror -coverage"
- os: linux
dist: trusty
language: python
2018-02-07 17:50:36 +02:00
python: "pypy2.7-5.10.0"
env: CFLAGS="-Werror -coverage"
2018-01-30 16:25:54 +02:00
- os: linux
dist: trusty
language: python
2018-02-07 17:50:36 +02:00
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"
2017-04-09 18:54:04 +03:00
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
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
- 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
2017-08-10 15:36:02 +03:00
- python -m pip install --upgrade pytest flake8 sphinx sphinx_rtd_theme coverage codecov hypothesis
2018-02-24 13:45:26 +02:00
- python -m pip install --upgrade mypy || true
2018-02-07 17:50:36 +02:00
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.3" ]] && [[ "${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
- python -m codecov
2017-05-01 17:20:39 +03:00
- 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 install --user
- PYCAIRO_SETUPTOOLS=1 python setup.py bdist_egg
- PYCAIRO_SETUPTOOLS=1 python setup.py bdist_wheel
- PYCAIRO_SETUPTOOLS=1 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
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.3" ]]; then python -m sphinx -W -a -E -b html -n docs docs/_build; fi