forked from RegioHelden/django-datawatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (48 loc) · 1.64 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
language: python
cache: pip
python:
- 2.7
- 3.5
- 3.6
env:
- DJANGO_VERSION=1.10.5
- DJANGO_VERSION=1.11.9
- DJANGO_VERSION=2.1
matrix:
include:
- python: 3.6
env: DJANGO_VERSION=2.1 DEPLOY=true
exclude:
- python: 2.7
env: DJANGO_VERSION=2.1
addons:
postgresql: 9.4
before_install:
- sudo apt-get update
- sudo apt-get remove libpq-dev -y
- sudo apt-get install postgresql-server-dev-9.4
install:
- pip install -q Django==$DJANGO_VERSION
- pip install .
- pip install -r requirements-test.txt
- pip install coveralls
services:
- postgresql
before_script:
- psql -c "CREATE DATABASE travisdb;" -U postgres
script:
- coverage run --source=django_datawatch manage.py test
- flake8 django_datawatch
after_success:
- coveralls
deploy:
provider: pypi
user: RegioHelden
password:
secure: Pbp4SnBKYRbo5t541gFQWvY+ZikSJZ1s8cp9YG2c5NRhbCapdV+fAag3yWvKUWWlnmv8KeEsCXSmoC8Apw4RPoDVMkg1tcx+KjyWc6hFjhHtBbUmgTgGpZtEsxdJR9ykV3fwhFImatQxSk7m1dCY+jEUT1vbOmjaASrd9SNogE9mQZ4V5goflmWUeDBeGLaYHrlKCgTxeQVNwbO1pzP+iTkPi4oMeBONXhCP7F2xd8QUEi8IuhNLn1MCmLysV5J5bgzlchQ4y7RdAJcDo1pqtf364Rn3MDRgU4iGAi6xLej5WALjYH2vAO0CQkCw95cMf+jo7OcOA4hIBVJoET2K8iRm0Ipq+GEsr7aws/3qBPbsHG3h1NxxeRphUT4REpeVo2ZIYP29kFTW3431TCUduS3vm8AdN+AJIA1sbUpjXxOKDlTxFrKOYGyC8GvV2vzQgEKIK8X/h+XMll1THwUc/024LwB9n2bxpS/FZ2+lw7fLrRMi6bUWU5AJq20V9y8uFkKHn+WsBYl3dwus2Nsj1slgJuBc0sAZB5Zgpitew42doMpL3nKSwJc/E9J1AwkrPIzqwmTaYyqcsOsgqO/FAnVqhM1/5Y7beUREjqUKdYZSCbuexer/ZP7sXhGWU9U/w9cKOr2lLTEMQQ2RcdGOSKTswY0g8MDjnl5xEtZrFl4=
on:
tags: true
all_branches: true
distributions: "sdist bdist_wheel"
python: 3.6
condition: "$DEPLOY = true"