gaphas/.travis.yml
Dan Yeaw 7a0ed9023b
Use poetry for Travis dependency management
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2018-12-01 18:12:13 -05:00

47 lines
929 B
YAML

language: python
dist: xenial
cache: pip
stages:
- lint
- test
jobs:
include:
- python: 2.7
- python: 3.5
- python: 3.6
- python: 3.7
env: PYTEST_ADDOPTS="--doctest-modules"
sudo: true
- stage: lint
python: 3.7
before_install: skip
install:
- pip install pre-commit
- pre-commit install-hooks
script:
- pre-commit run --all-files
after_success: skip
before_install:
- sudo apt-get update -q
- sudo apt-get install --no-install-recommends -y xvfb python3-dev python3-gi python3-gi-cairo
gir1.2-gtk-3.0 libgirepository1.0-dev libcairo2-dev
install:
- pip install poetry
- poetry install
script:
- xvfb-run pytest -q
after_success:
- coveralls
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/1e0a1432c48a12660160
on_success: change
on_failure: always
on_start: never