.travis.yml 979 B

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