This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
forked from jazzband/django-silk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (83 loc) · 3.26 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: python
dist: xenial
sudo: false
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
env:
- DJANGO="Django>=1.11.0,<2.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=2.0,<2.1.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=2.1,<2.2.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=2.2,<2.3.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=1.11.0,<2.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=2.0,<2.1.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=2.1,<2.2.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=2.2,<2.3.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=1.11.0,<2.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=2.0,<2.1.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=2.1,<2.2.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=2.2,<2.3.0" DB=mysql DB_NAME=mysql_db
matrix:
exclude:
- python: '2.7'
env: DJANGO="Django>=2.0,<2.1.0" DB=postgresql DB_NAME=travis_ci_test
- python: '2.7'
env: DJANGO="Django>=2.1,<2.2.0" DB=postgresql DB_NAME=travis_ci_test
- python: '2.7'
env: DJANGO="Django>=2.2,<2.3.0" DB=postgresql DB_NAME=travis_ci_test
- python: '2.7'
env: DJANGO="Django>=2.0,<2.1.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '2.7'
env: DJANGO="Django>=2.1,<2.2.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '2.7'
env: DJANGO="Django>=2.2,<2.3.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '2.7'
env: DJANGO="Django>=2.0,<2.1.0" DB=mysql DB_NAME=mysql_db
- python: '2.7'
env: DJANGO="Django>=2.1,<2.2.0" DB=mysql DB_NAME=mysql_db
- python: '2.7'
env: DJANGO="Django>=2.2,<2.3.0" DB=mysql DB_NAME=mysql_db
- python: '3.4'
env: DJANGO="Django>=2.1,<2.2.0" DB=postgresql DB_NAME=travis_ci_test
- python: '3.4'
env: DJANGO="Django>=2.2,<2.3.0" DB=postgresql DB_NAME=travis_ci_test
- python: '3.4'
env: DJANGO="Django>=2.1,<2.2.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '3.4'
env: DJANGO="Django>=2.2,<2.3.0" DB=sqlite3 DB_NAME=db.sqlite3
- python: '3.4'
env: DJANGO="Django>=1.11.0,<2.0" DB=mysql DB_NAME=mysql_db
- python: '3.4'
env: DJANGO="Django>=2.0,<2.1.0" DB=mysql DB_NAME=mysql_db
- python: '3.4'
env: DJANGO="Django>=2.1,<2.2.0" DB=mysql DB_NAME=mysql_db
- python: '3.4'
env: DJANGO="Django>=2.2,<2.3.0" DB=mysql DB_NAME=mysql_db
fast_finish: true
services:
- mysql
- postgresql
install:
- travis_retry pip install -q $DJANGO
- travis_retry pip install -r requirements.txt
- travis_retry pip install -r project/test-requirements.txt
- if [[ "$DB" = "postgresql" ]]; then pip install psycopg2; fi
- if [[ "$DB" = "postgresql" ]]; then psql -c 'create database travis_ci_test;' -U
postgres; fi
- if [[ "$DB" = "mysql" ]]; then pip install mysqlclient; fi
- if [[ "$DB" = "mysql" ]]; then mysql -e 'create database mysql_db;'; fi
script:
- "./project/run_tests.sh"
deploy:
provider: pypi
user: jazzband
server: https://jazzband.co/projects/django-silk/upload
password:
secure: VqpIq4gsetWZFDG7XV72Tg+7zx0zRLcLXlLKM6XVN5LqARx4MVgNWD/lJvf5EWqvXPqcx6DAQN5c5nd35swWjET2XnAR0HO5Bc8F1U/gaHOlvdZBuOSb0PIzl1uPl4JHtwiRJckZELB/O8M8RgJzulZd+28TL37dsH+0baFZ05c=
distributions: sdist bdist_wheel
on:
tags: true
repo: jazzband/django-silk