forked from modoboa/modoboa-postfix-autoreply
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (47 loc) · 1.16 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
env:
global:
- PYTHONWARNINGS="default,ignore::PendingDeprecationWarning,ignore::ResourceWarning"
matrix:
- DB="POSTGRESQL"
- DB="MYSQL"
sudo: false
cache: pip
addons:
postgresql: "9.3"
mysql: "5.5"
apt:
packages:
- rsyslog
before_install:
- pip install codecov
- pip install -e git+https://github.com/modoboa/modoboa.git#egg=modoboa
install:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- python setup.py develop
script:
- cd test_project
- coverage run --source ../modoboa_postfix_autoreply manage.py test --nomigrations modoboa_postfix_autoreply.tests
after_success:
- codecov
before_deploy:
- cd ../modoboa_postfix_autoreply
- django-admin compilemessages
- cd ..
deploy:
provider: pypi
user: tonio
password:
secure: KGr/3pz3ynbIBVYAHwUhibqRqCWCE6itWqDgKizkERUhhxdyXzjxo662EW1V4Ahu6rg8pHcDT33IAIc9zKqGFzpJa1d7rlY2lcJll3wXzIcqDonB8Wo8YfwytP4WbxNYYEfcKI5W4eB7MiuccGz5TYO837df+QQNDMrhq0ScLws=
skip_cleanup: true
distributions: "sdist bdist_wheel"
on:
tags: true
python: "3.6"
condition: $DB = POSTGRESQL