.travis.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. language: python
  2. services:
  3. - memcached
  4. - riak
  5. - mysql
  6. - postgresql
  7. - redis-server
  8. - cassandra
  9. python:
  10. - "2.6"
  11. - "2.7"
  12. env:
  13. matrix:
  14. - DB=sqlite
  15. - DB=mysql
  16. - DB=postgres
  17. global:
  18. - PIP_DOWNLOAD_CACHE=".pip_download_cache"
  19. - WAD_FILES="package.json,Makefile,setup.py"
  20. - WAD_INSTALL_COMMAND="make develop dev-postgres dev-mysql"
  21. # This should be specified with:
  22. # travis encrypt S3_BUCKET_NAME=secretvalue S3_CREDENTIALS=accesskey:secretkey
  23. # - S3_BUCKET_NAME=
  24. # - S3_CREDENTIALS=
  25. - secure: pZ7DtkEu2q/pGINfVT9S+iPRE5ck6mBQmuHTQz3PVXF/UJmpM1LCbC7aqrw4GXWuUhYc50QCnMZJL1yoBORVEfY4nfXHLRc3HMoWE6Srqf0IBDywi6T+UUdLeOYe13EDb4p8WIpnRGlV4WI1WaPXuFlMEdj5tAjlC9ZotLxyVaI=
  26. before_install:
  27. # Use closer nameservers
  28. - printf "nameserver 199.91.168.70\nnameserver 199.91.168.71\n" | sudo tee /etc/resolv.conf
  29. # These need to be here and not in the env hash because they need to be
  30. # evaluated after the virtualenv has been setup
  31. - mkdir -p $PIP_DOWNLOAD_CACHE
  32. - export WAD_ENVIRONMENT_VARIABLES="TRAVIS_PYTHON_VERSION,TRAVIS_NODE_VERSION,WAD_CACHE_PATH"
  33. - export WAD_CACHE_PATH="node_modules,$PIP_DOWNLOAD_CACHE,$VIRTUAL_ENV"
  34. install:
  35. - time script/wad
  36. before_script:
  37. - mysql -e 'create database sentry;'
  38. - psql -c 'create database sentry;' -U postgres
  39. - "echo \"create keyspace sentry with replication = {'class' : 'SimpleStrategy', 'replication_factor': 1};\" | cqlsh --cqlversion=3.0.3"
  40. - echo 'create table nodestore (key text primary key, value blob, flags int);' | cqlsh -k sentry --cqlversion=3.0.3
  41. script:
  42. - make lint
  43. - make test-js
  44. - py.test tests/ --cov sentry --cov-report term-missing
  45. - make test-cli
  46. notifications:
  47. irc:
  48. channels: "irc.freenode.org#sentry"
  49. on_success: change
  50. on_failure: change
  51. after_success:
  52. - coveralls