Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Use the newer container-based infrastructure
  2. # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
  3. sudo: false
  4. # Cache pip downloads
  5. cache:
  6. # Apparently if you override the install command that silently disables the
  7. # cache: pip support. This is less than ideal and @dstufft opened up
  8. # travis-ci/travis-ci#3239 to hopefully get that addressed. For now we
  9. # manually add the pip cache directory to the build cache.
  10. directories:
  11. - ~/.cache/pip
  12. language: python
  13. python:
  14. - 2.7
  15. - 3.3
  16. - 3.4
  17. - 3.5
  18. env:
  19. global:
  20. # $TRANSIFEX_PASSWORD for oscar_bot (used in transifex.sh)
  21. - secure: FuIlzEsGJiAwhaIRBmRNsq9eXmuzs25fX6BChknW4lDyVAySWMp0+Zps9Bd0JgfFYUG3Ip+OTmksYIoTUsG25ZJS9cq1IFt3QKUAN70YCI/4ZBLeIdICPEyxq+Km179+NeEXmBUug17RLMLxh3MWfO+RKUHK9yHIPNNpq0dNyoo=
  22. # These two environment variables could be set by Travis itself, or Travis
  23. # could configure itself in /etc/, ~/, or inside of the virtual
  24. # environments. In any case if these two values get configured then end
  25. # users only need to enable the pip cache and manually run pip wheel before
  26. # running pip install.
  27. - PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
  28. - PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
  29. matrix:
  30. - DJANGO=Django==1.8.11
  31. - DJANGO=Django==1.9.3
  32. matrix:
  33. exclude:
  34. # Python 3.3 is not supported by Django 1.9
  35. - python: 3.3
  36. env: "DJANGO=Django==1.9.3"
  37. before_install:
  38. - pip install codecov
  39. install:
  40. # Before installation, we'll run ``pip wheel``, this will build wheels for
  41. # anything that doesn't already have one on PyPI.
  42. - pip wheel -r requirements.txt
  43. # Actually install our dependencies now, this will pull from the directory
  44. # that the first command placed the Wheels into.
  45. - pip install --pre $DJANGO
  46. - pip install -e . -r requirements.txt
  47. before_script:
  48. # Create testing databases for running migrations against
  49. - mysql -e 'CREATE DATABASE oscar_travis;'
  50. - psql -c 'CREATE DATABASE oscar_travis;' -U postgres
  51. script:
  52. - make travis
  53. after_success:
  54. - coveralls
  55. - codecov
  56. - ./transifex.sh