.travis.yml 869 B

123456789101112131415161718192021222324252627282930313233343536
  1. sudo: false
  2. language: python
  3. services:
  4. - elasticsearch
  5. - memcached
  6. - riak
  7. - mysql
  8. - postgresql
  9. - redis-server
  10. - cassandra
  11. python:
  12. - "2.7"
  13. cache:
  14. directories:
  15. - node_modules
  16. - .pip_download_cache
  17. - "$HOME/virtualenv/python2.7.9"
  18. env:
  19. matrix:
  20. - DB=sqlite
  21. - DB=mysql
  22. - DB=postgres
  23. global:
  24. - PIP_DOWNLOAD_CACHE=".pip_download_cache"
  25. install:
  26. - time make develop dev-postgres dev-mysql
  27. before_script:
  28. - mysql -e 'create database sentry;'
  29. - psql -c 'create database sentry;' -U postgres
  30. - "echo \"create keyspace sentry with replication = {'class' : 'SimpleStrategy', 'replication_factor': 1};\" | cqlsh --cqlversion=3.0.3"
  31. - echo 'create table nodestore (key text primary key, value blob, flags int);' | cqlsh -k sentry --cqlversion=3.0.3
  32. script:
  33. - make lint
  34. - make test-js
  35. - py.test tests
  36. - make test-cli