forked from jazzband/django-sortedm2m
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (46 loc) · 1.23 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
cache: pip
dist: xenial
sudo: false
services:
- postgresql
- mysql
python:
- 2.7
- 3.5
- 3.6
- 3.7
matrix:
fast_finish: true
include:
- python: 3.6
env: TOXENV=quality
install:
- pip install -U codecov tox tox-travis
before_script:
- export PIP_USE_MIRRORS=true
- export DJANGO_SETTINGS_MODULE=test_settings
- pg_lsclusters
# Postgres setup.
# Password is 'sortedm2m'
- psql -c "CREATE ROLE sortedm2m PASSWORD 'md5ba287bde612ca41b14776ec8f8dfdaa9' SUPERUSER
CREATEDB CREATEROLE INHERIT LOGIN;" -U postgres
- psql -c "CREATE DATABASE sortedm2m OWNER sortedm2m;" -U postgres
# MySQL setup.
- echo "CREATE USER 'sortedm2m'@'localhost' IDENTIFIED BY 'sortedm2m';" | mysql -u
root
- echo "GRANT ALL PRIVILEGES ON *.* TO 'sortedm2m'@'localhost' WITH GRANT OPTION;"
| mysql -u root
script: tox -v
after_success: codecov
deploy:
provider: pypi
user: jazzband
distributions: sdist bdist_wheel
server: https://jazzband.co/projects/django-sortedm2m/upload
password:
secure: TfN/ENym4GrxYSno4FnrK9qXdceBEVU6k71OS2GYkiEmcwZMiAeXDivhddVgHswHEGxJnik6iu26EJUH4euXm0GZYI/1h0ihXQSWIfD8FnouhhlDpBmuW6BlvyDY7j9flfPDIc+LXseP3fel/ctCZibTdl5nHbaUIEGM6KTeRnE=
on:
tags: true
repo: jazzband/django-sortedm2m
python: 3.7