.travis.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. filter_secrets: false
  2. sudo: false
  3. dist: precise
  4. language: python
  5. rvm:
  6. - 2.2
  7. cache:
  8. yarn: true
  9. directories:
  10. - node_modules
  11. - $HOME/.cache/pip/wheels
  12. branches:
  13. only:
  14. - master
  15. addons:
  16. apt:
  17. sources:
  18. - ubuntu-toolchain-r-test
  19. packages:
  20. - g++-4.8
  21. - libxmlsec1-dev
  22. env:
  23. global:
  24. - NODE_ENV=production
  25. - PIP_DISABLE_PIP_VERSION_CHECK=on
  26. - SENTRY_LIGHT_BUILD=1
  27. - SENTRY_SKIP_BACKEND_VALIDATION=1
  28. - TRAVIS_NODE_VERSION=4
  29. - CXX=g++-4.8
  30. install:
  31. - nvm install $TRAVIS_NODE_VERSION
  32. - npm install -g yarn@0.27.5
  33. - make travis-install-$TEST_SUITE
  34. before_script:
  35. - pip freeze
  36. script:
  37. - make travis-lint-$TEST_SUITE
  38. - make travis-test-$TEST_SUITE
  39. after_success:
  40. - codecov -e TEST_SUITE
  41. after_failure:
  42. - dmesg | tail -n 100
  43. # each attribute in the matrix will override the global attribute
  44. matrix:
  45. fast_finish: true
  46. allow_failures:
  47. - python: 2.7
  48. env: TEST_SUITE=django-18
  49. include:
  50. - language: ruby
  51. rvm: 2.2
  52. env: TEST_SUITE=danger
  53. # only the sqlite suite runs cassandra/riak tests
  54. - python: 2.7
  55. env: TEST_SUITE=sqlite DB=sqlite
  56. services:
  57. - memcached
  58. - riak
  59. - redis-server
  60. - cassandra
  61. before_script:
  62. - make travis-setup-cassandra
  63. - pip freeze
  64. - python: 2.7
  65. env: TEST_SUITE=postgres DB=postgres
  66. services:
  67. - memcached
  68. - redis-server
  69. - postgresql
  70. - python: 2.7
  71. env: TEST_SUITE=network DB=postgres
  72. services:
  73. - memcached
  74. - redis-server
  75. - postgresql
  76. - python: 2.7
  77. env: TEST_SUITE=mysql DB=mysql
  78. services:
  79. - memcached
  80. - mysql
  81. - redis-server
  82. - python: 2.7
  83. env: TEST_SUITE=acceptance
  84. services:
  85. - memcached
  86. - redis-server
  87. - postgresql
  88. - python: 2.7
  89. env: TEST_SUITE=js
  90. - python: 2.7
  91. env: TEST_SUITE=cli
  92. services:
  93. - postgresql
  94. - python: 2.7
  95. env: TEST_SUITE=dist
  96. - python: 2.7
  97. env: TEST_SUITE=django-18
  98. services:
  99. - memcached
  100. - redis-server
  101. - postgresql