forked from jazzband/django-silk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.28 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
47
48
dist: xenial
language: python
cache: pip
python:
- 3.5
- 3.6
- 3.7
- 3.8
services:
- mysql
- postgresql
install:
- pip install tox-travis codecov
- if [[ "$DB" = "mysql" ]]; then mysql -e "create database mysql_db;"; fi
- if [[ "$DB" = "postgresql" ]]; then psql -c "create database travis_ci_test;" -U postgres; fi
script: tox
after_success: codecov
env:
- DJANGO=2.2 DATABASE=sqlite3
- DJANGO=2.2 DATABASE=mysql
- DJANGO=2.2 DATABASE=postgresql
- DJANGO=3.0 DATABASE=sqlite3
- DJANGO=3.0 DATABASE=mysql
- DJANGO=3.0 DATABASE=postgresql
jobs:
exclude:
- python: 3.5
env: DJANGO=3.0 DATABASE=sqlite3
- python: 3.5
env: DJANGO=3.0 DATABASE=mysql
- python: 3.5
env: DJANGO=3.0 DATABASE=postgresql
include:
- stage: deploy
env:
python: 3.6
script: skip
deploy:
provider: pypi
user: jazzband
server: https://jazzband.co/projects/django-silk/upload
distributions: sdist bdist_wheel
password:
secure: VqpIq4gsetWZFDG7XV72Tg+7zx0zRLcLXlLKM6XVN5LqARx4MVgNWD/lJvf5EWqvXPqcx6DAQN5c5nd35swWjET2XnAR0HO5Bc8F1U/gaHOlvdZBuOSb0PIzl1uPl4JHtwiRJckZELB/O8M8RgJzulZd+28TL37dsH+0baFZ05c=
skip_existing: true
on:
tags: true
repo: jazzband/django-silk