.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. language: python
  2. sudo: required
  3. python:
  4. - 3.5
  5. - 3.6
  6. services:
  7. - mongodb
  8. - mysql
  9. - postgresql
  10. before_script:
  11. - sudo psql -c "CREATE USER tester WITH PASSWORD '123456';" -U postgres
  12. - sudo psql -c 'create database pwman;' -U postgres
  13. - sudo psql -c 'grant ALL ON DATABASE pwman to tester' -U postgres
  14. - sudo mysql -e 'create database pwmantest' -uroot
  15. - sudo mysql -e "create user 'pwman'@'localhost' IDENTIFIED BY '123456'" -uroot
  16. - sudo mysql -e "grant all on pwmantest.* to 'pwman'@'localhost';" -uroot
  17. - mongo pwmantest --eval 'db.createUser({user:"tester",pwd:"12345678",roles:["readWrite"]});'
  18. before_install:
  19. - sudo apt-get update -qq
  20. - sudo apt-get install python-psycopg2 python3-psycopg2
  21. - sudo apt-get install python-mysqldb
  22. install:
  23. - "pip install pymongo==2.8"
  24. - "pip install pymysql"
  25. - "pip install -r requirements.txt -r test_requirements.txt"
  26. - "pip install coveralls"
  27. - "pip install ."
  28. script:
  29. - python setup.py develop
  30. - coverage run -m tests.test_integration
  31. after_success:
  32. - coveralls