forked from modoboa/modoboa-radicale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (51 loc) · 1.2 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
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: true
directories:
- frontend/node_modules
addons:
postgresql: '9.3'
mysql: '5.5'
before_install:
- pip install codecov
- pip install -r test-requirements.txt
- pip install -e git+https://github.com/modoboa/modoboa.git#egg=modoboa
install:
- pip install -r requirements.txt
- python setup.py develop
script:
- cd test_project
- coverage run --source ../modoboa_radicale manage.py test modoboa_radicale
after_success:
- codecov
before_deploy:
- cd ../modoboa_radicale
- django-admin compilemessages
- cd ../frontend
- nvm install 6.10
- npm install
- npm run build
- cd ..
deploy:
provider: pypi
user: tonio
password:
secure: HvFy7qHGFLRzHZzGQYb8miW7RD9hubkzT1P20Gd3U//BCS3Db9e3REiA2Y8ecnUfAHXRXFa1J8Wyq/ThbVTMo6UIIdkow9STDF88Bm/H8uPY9F/4qWefjelFA1C2Faxh1JDAEPmm1nkzVlGxBLQ25fvJPZflRt1jYBRY9ZSqaXg=
skip_cleanup: true
distributions: sdist bdist_wheel
on:
tags: true
python: '3.6'
condition: "$DB = POSTGRESQL"