Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
Travis CI improvements
Browse files Browse the repository at this point in the history
based on the work done on pyqode.core: run tests with both PyQt4 and PyQt5
  • Loading branch information
ColinDuquesnoy committed Jan 25, 2016
1 parent 7d2affe commit 3f81e60
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 3,491 deletions.
45 changes: 45 additions & 0 deletions .travis.yml
@@ -0,0 +1,45 @@
language: python
sudo: required
dist: trusty

python:
- "2.7"
- "3.4"

virtualenv:
system_site_packages: true

matrix:
exclude:
- env: QT_API=pyqt5
python: "2.7"

env:
- QT_API=pyqt4
- QT_API=pyqt5

before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

install:
- sudo apt-get update

# Qt
- python scripts/install-qt.py

# OpenCOBOL
- sudo apt-get install -y --qq open-cobol --fix-missing

# pytest
- pip install --quiet pytest pytest-cov

# coveralls
- pip install --quiet coveralls --use-wheel

script:
- pip install -e .
- catchsegv py.test --cov pyqode

after_success:
- coveralls
9 changes: 2 additions & 7 deletions CONTRIBUTING.rst
Expand Up @@ -21,13 +21,8 @@ Pull Requests are great!
4. Add your name to AUTHORS.rst
5. Push to your fork and submit a pull request to **the master branch**.

Please use **PEP8** to style your code (PEP8 compliance is tested Travis CI).

*You can check pep8 compliance before pushing by running the test suite with
the --pep8 option*::

($ pip3 install pytest-pep8)
$ python3 runtests.py --pep8 -m pep8
Please use **PEP8** to style your code (PEP8 compliance is tested Travis CI)::

python setup.py test -a "--pep8 -m pep8"

.. _bug tracker: https://github.com/OpenCobolIDE/OpenCobolIDE/issues?state=open

0 comments on commit 3f81e60

Please sign in to comment.