-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
46 lines (46 loc) · 1.62 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: python
sudo: false
python:
- "2.7"
- "3.6"
env:
global:
- PYTHONPATH=tests/testapp
matrix:
- DJANGO_VERSION=">=1.8,<1.9"
- DJANGO_VERSION=">=1.9,<1.10"
- DJANGO_VERSION=">=1.10,<1.11"
- DJANGO_VERSION=">=1.11,<2.0"
- DJANGO_VERSION=">=2.0,<2.1"
- DJANGO_VERSION=">=2.1,<2.2"
matrix:
exclude:
- python: "2.7"
env: DJANGO_VERSION=">=2.0,<2.1"
- python: "2.7"
env: DJANGO_VERSION=">=2.1,<2.2"
install:
- travis_retry pip install codecov
- travis_retry pip install -U -r dev-requirements.txt
- travis_retry pip install -U "django$DJANGO_VERSION"
- travis_retry pip install -U .
script:
- flake8 .
- pytest
after_success: codecov
jobs:
include:
- stage: PyPI release
if: tag IS present
env: []
install: true
script: echo 'Releasing to PyPI...'
after_success: true
deploy:
provider: pypi
user: jm.carp
password:
secure: P3woJdZse2/7bYeln/e3W6HEJvJ0cAqqkYwwlnfset3CuDF3+2UE4uJ2mJqtKKcfoJiIFv7wOOaEtvYI5M5p5Y4LOE9ArVpz9kDJw5eqd28jMGJJ3E5V25y29hKw40uUBq9vjrL6tFR2kPqEf1RmRKwuCbkj7nNwDkHm6oAbgph9uZ14BHtWGMpfj0qHRaH16I8lHJ0GBZfX9cd51Rp8UxcOBCI4mASwWWeuqgwTl9SYuKWitgdwiga4epBJ4w8wgWEDaQvRqIaW7vKsndC/RvXF7Oi9xLL1spPbYtCYr5LVL3v3QvCBO8L0KIj0m7cCmBo9G8vzNT5GZwl+x+MbCgU5eU7sxojdX3LVO3b2yoCpGcxnKGCXZP2JB2oKZ1Fn61SNdO3BmJBsmsMJScRMxV9T0uPTWwxVa+/RVzHxulHlJTxWHUrjjYpd7tn5l6Kise676Nx54fc7JDDoHOYKI44Ztb8UpeJzJYTm2sDYOrFdHptv8lDLumqptpiDkqmsfOS+u7OsLWAUj+eRXGV3OSRs3ezMtKcD3l290mqrY3ibJfxpJZn0djoat+L1On2T3seI3AhSuCiu4QAOxvPAEUBBXO0uU+WMHk5lY4ZLBFRTaqpOc8Nv4oPOSLim4WGZsB1IYIhQ9fexk/Xl3oo+JilSh3BBwYCoZS8x/NKNpNQ=
on:
tags: true
distributions: sdist bdist_wheel