forked from jazzband/django-sortedm2m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (54 loc) · 1.43 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
dist: bionic
language: python
cache: pip
services:
- postgresql
- mysql
python:
- 3.6
- 3.7
- 3.8
before_install:
- sudo apt-get update
- sudo apt-get install -y firefox-geckodriver xvfb
install: pip install -U codecov tox tox-travis selenium
addons:
postgresql: '10'
matrix:
fast_finish: true
include:
- python: 3.8
env: TOXENV=quality
- python: 3.8
env: TOXENV=dist-validation
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
- make qunit
after_success: codecov
deploy:
provider: pypi
edge: true
skip_existing: true
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.8