.travis.yml 663 B

1234567891011121314151617181920212223242526
  1. language: python
  2. python:
  3. - 2.7
  4. - 3.4
  5. before_script:
  6. - psql -c "CREATE USER tester WITH PASSWORD '123456';" -U postgres
  7. - psql -c 'create database pwman;' -U postgres
  8. - psql -c 'grant ALL ON DATABASE pwman to tester' -U postgres
  9. before_install:
  10. - sudo apt-get update -qq
  11. - sudo apt-get install python-psycopg2 python3-psycopg2
  12. # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
  13. install:
  14. - "pip install -r requirements.txt"
  15. - "pip install coveralls"
  16. - "pip install ."
  17. # command to run tests, e.g. python setup.py test
  18. script:
  19. coverage run --source=pwman setup.py test
  20. after_success:
  21. coveralls