.travis.yml 821 B

1234567891011121314151617181920212223242526
  1. language: python
  2. python:
  3. - 2.7
  4. - 3.4
  5. before_script:
  6. - psql -c 'create database pwman;' -U postgres
  7. before_install:
  8. - sudo apt-get update -qq
  9. - sudo apt-get install python-psycopg2 python3-psycopg2
  10. # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
  11. install:
  12. - "pip install -r requirements.txt"
  13. - "pip install coveralls"
  14. - "pip install ."
  15. # command to run tests, e.g. python setup.py test
  16. script:
  17. coverage run --source=pwman setup.py test
  18. #coverage run --omit="pwman/tests/*.py,pwman/ui/mac.py,pwman/ui/win.py,pwman/data/convertdb.py,pwman/data/nodes_multiple_approach.py,pwman/data/models.py,pwman/data/drivers/postgresql.py,pwman/data/drivers/mysql.py,pwman/exchange/importer.py,pwman/ui/base.py" --source=pwman setup.py test
  19. after_success:
  20. coveralls