.travis.yml 897 B

12345678910111213141516171819202122232425262728
  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. - mysql -e 'create database pwmantest' -U root
  10. - mysql -e "create user 'pwman'@'localhost' IDENTIFIED BY '123456'"
  11. - mysql -e "grant all on pwmantest.* to 'pwman'@'localhost';"
  12. before_install:
  13. - sudo apt-get update -qq
  14. - sudo apt-get install python-psycopg2 python3-psycopg2
  15. - sudo apt-get install python-mysql python3-mysql
  16. # command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
  17. install:
  18. - "pip install -r requirements.txt"
  19. - "pip install coveralls"
  20. - "pip install ."
  21. # command to run tests, e.g. python setup.py test
  22. script:
  23. coverage run --source=pwman setup.py test
  24. after_success:
  25. coveralls